aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb7
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)]
}