Changeset 6469
- Timestamp:
- 03/27/07 06:57:53 (2 years ago)
- Files:
-
- trunk/activerecord/CHANGELOG (modified) (1 diff)
- trunk/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/activerecord/CHANGELOG
r6449 r6469 1 1 *SVN* 2 3 * Add helpful debugging info to the ActiveRecord::StatementInvalid exception in ActiveRecord::ConnectionAdapters::SqliteAdapter#table_structure. Closes #7925. [court3nay] 2 4 3 5 * SQLite: binary escaping works with $KCODE='u'. #7862 [tsuka] trunk/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb
r6449 r6469 287 287 def table_structure(table_name) 288 288 returning structure = execute("PRAGMA table_info(#{table_name})") do 289 raise ActiveRecord::StatementInvalidif structure.empty?289 raise(ActiveRecord::StatementInvalid, "Could not find table '#{table_name}'") if structure.empty? 290 290 end 291 291 end … … 385 385 def table_structure(table_name) 386 386 returning structure = @connection.table_info(table_name) do 387 raise ActiveRecord::StatementInvalidif structure.empty?387 raise(ActiveRecord::StatementInvalid, "Could not find table '#{table_name}'") if structure.empty? 388 388 end 389 389 end