Changeset 6091
- Timestamp:
- 01/30/07 03:14:55 (2 years ago)
- Files:
-
- trunk/activerecord/CHANGELOG (modified) (1 diff)
- trunk/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb (modified) (2 diffs)
- trunk/activerecord/test/abstract_unit.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/activerecord/CHANGELOG
r6090 r6091 1 1 *SVN* 2 3 * When dealing with SQLite3, use the table_info pragma helper, so that the bindings can do some translation for when sqlite3 breaks incompatibly between point releases. [Jamis Buck] 2 4 3 5 * Oracle: fix lob and text default handling. #7344 [gfriedrich, Michael Schoen] trunk/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb
r6012 r6091 23 23 db.busy_timeout(config[:timeout]) unless config[:timeout].nil? 24 24 25 ConnectionAdapters::SQLite Adapter.new(db, logger)25 ConnectionAdapters::SQLite3Adapter.new(db, logger) 26 26 end 27 27 … … 382 382 end 383 383 384 class SQLite3Adapter < SQLiteAdapter # :nodoc: 385 def table_structure(table_name) 386 returning structure = @connection.table_info(table_name) do 387 raise ActiveRecord::StatementInvalid if structure.empty? 388 end 389 end 390 end 391 384 392 class SQLite2Adapter < SQLiteAdapter # :nodoc: 385 393 def supports_count_distinct? #:nodoc: trunk/activerecord/test/abstract_unit.rb
r4966 r6091 57 57 types.any? do |type| 58 58 ActiveRecord::ConnectionAdapters.const_defined?(type) && 59 ActiveRecord::Base.connection.i nstance_of?(ActiveRecord::ConnectionAdapters.const_get(type))59 ActiveRecord::Base.connection.is_a?(ActiveRecord::ConnectionAdapters.const_get(type)) 60 60 end 61 61 end