Skip to content

Commit

Permalink
Remove unused constant.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.ttiltd.com/svn/dev.rb/trunk/libraries/fb_adapter2@3433 e6efdd46-4312-0410-9032-dd8a18d5a4db
  • Loading branch information
brent committed Feb 27, 2008
1 parent 30de033 commit 94e30bd
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/active_record/connection_adapters/fb_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ def fb_connection(config) # :nodoc:

module ConnectionAdapters
class FbColumn < Column # :nodoc:
VARCHAR_MAX_LENGTH = 32_765

def initialize(name, domain, type, sub_type, length, precision, scale, default_source, null_flag)
#puts "*** #{type} ~~~ #{sub_type}"
@firebird_type = Fb::SqlType.from_code(type, sub_type || 0)
Expand Down Expand Up @@ -75,7 +73,6 @@ def parse_default(default_source)

def column_def
case @firebird_type
#when 'BLOB' then "VARCHAR(#{VARCHAR_MAX_LENGTH})"
when 'CHAR', 'VARCHAR' then "#{@firebird_type}(#{@limit})"
when 'NUMERIC', 'DECIMAL' then "#{@firebird_type}(#{@precision},#{@scale.abs})"
#when 'DOUBLE' then "DOUBLE PRECISION"
Expand Down

0 comments on commit 94e30bd

Please sign in to comment.