Skip to content
Browse files

explains for prepared statements should never have binds in SQLite3

  • Loading branch information...
1 parent fd97f35 commit e2e9a1373ec757188c2aaaa5722c2f8858e6b897 @tenderlove tenderlove committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb
View
2 activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb
@@ -269,7 +269,7 @@ def type_cast(value, column) # :nodoc:
def explain(arel, binds = [])
sql = "EXPLAIN QUERY PLAN #{to_sql(arel, binds)}"
- ExplainPrettyPrinter.new.pp(exec_query(sql, 'EXPLAIN', binds))
+ ExplainPrettyPrinter.new.pp(exec_query(sql, 'EXPLAIN', []))
end
class ExplainPrettyPrinter

0 comments on commit e2e9a13

Please sign in to comment.
Something went wrong with that request. Please try again.