提交 5a56b571 编写于 作者: R Ryuta Kamizono

Remove `delete_sql` in sqlite3 adapter

`sql += " WHERE 1=1"` was introduced in 69cb942d.
But it is not needed. ref https://www.sqlite.org/lang_delete.html
上级 6a42f009
......@@ -285,11 +285,6 @@ def update_sql(sql, name = nil) #:nodoc:
@connection.changes
end
def delete_sql(sql, name = nil) #:nodoc:
sql += " WHERE 1=1" unless sql =~ /WHERE/i
super sql, name
end
def select_rows(sql, name = nil, binds = [])
exec_query(sql, name, binds).rows
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册