diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-01-14 14:40:26 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-01-14 14:40:26 -0800 |
commit | 9c290db1155b9e418be1775c4ec3fc06eb878839 (patch) | |
tree | dbc2550fcb50c8827248af839a2396ba32854e0a /activerecord/lib/active_record/connection_adapters | |
parent | 2de1bb859c82857c069a4b75cda79d9f525a039e (diff) | |
download | rails-9c290db1155b9e418be1775c4ec3fc06eb878839.tar.gz rails-9c290db1155b9e418be1775c4ec3fc06eb878839.tar.bz2 rails-9c290db1155b9e418be1775c4ec3fc06eb878839.zip |
comment out the sqlite3 debug code (for now)
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb b/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb index 55533311f5..87bb2ef7b7 100644 --- a/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb @@ -291,6 +291,13 @@ module ActiveRecord end def exec_query(sql, name = nil, binds = []) + #if @prepared_statements && name != 'EXPLAIN' + # unless sql.count('?') == binds.length + # str = "binds.length => #{binds.length} sql.count => #{sql.count('?')}\n" \ + # "#{sql}" + # raise str + # end + #end type_casted_binds = binds.map { |col, val| [col, type_cast(val, col)] } |