提交 e2e9a137 编写于 作者: A Aaron Patterson

explains for prepared statements should never have binds in SQLite3

上级 fd97f356
...@@ -269,7 +269,7 @@ def type_cast(value, column) # :nodoc: ...@@ -269,7 +269,7 @@ def type_cast(value, column) # :nodoc:
def explain(arel, binds = []) def explain(arel, binds = [])
sql = "EXPLAIN QUERY PLAN #{to_sql(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 end
class ExplainPrettyPrinter class ExplainPrettyPrinter
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册