Skip to content

Commit

Permalink
renamed class SQLiteColumn to SQLite3Column
Browse files Browse the repository at this point in the history
  • Loading branch information
aderyabin committed Apr 27, 2012
1 parent 3cc9b5f commit dd05a49
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -37,7 +37,7 @@ def sqlite3_connection(config) # :nodoc:
end

module ConnectionAdapters #:nodoc:
class SQLiteColumn < Column #:nodoc:
class SQLite3Column < Column #:nodoc:
class << self
def binary_to_string(value)
if value.encoding != Encoding::ASCII_8BIT
Expand Down Expand Up @@ -380,7 +380,7 @@ def table_exists?(name)
name && tables('SCHEMA', name).any?
end

# Returns an array of +SQLiteColumn+ objects for the table specified by +table_name+.
# Returns an array of +SQLite3Column+ objects for the table specified by +table_name+.
def columns(table_name) #:nodoc:
table_structure(table_name).map do |field|
case field["dflt_value"]
Expand All @@ -392,7 +392,7 @@ def columns(table_name) #:nodoc:
field["dflt_value"] = $1.gsub('""', '"')
end

SQLiteColumn.new(field['name'], field['dflt_value'], field['type'], field['notnull'].to_i == 0)
SQLite3Column.new(field['name'], field['dflt_value'], field['type'], field['notnull'].to_i == 0)
end
end

Expand Down

0 comments on commit dd05a49

Please sign in to comment.