diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2016-01-06 19:27:04 -0200 |
---|---|---|
committer | Rafael França <rafaelmfranca@gmail.com> | 2016-01-06 19:27:04 -0200 |
commit | e10cb1e8816a0f132536d34e46bc30ccb8cbe43f (patch) | |
tree | 6416fd3abac144495891ad4a8fa710e5eacee375 | |
parent | 6a42f0093e801c1cc4371cd1a324a7f3e83a14e2 (diff) | |
parent | 5a56b5718ec7a77e4e613c8aadc44b9b387892c6 (diff) | |
download | rails-e10cb1e8816a0f132536d34e46bc30ccb8cbe43f.tar.gz rails-e10cb1e8816a0f132536d34e46bc30ccb8cbe43f.tar.bz2 rails-e10cb1e8816a0f132536d34e46bc30ccb8cbe43f.zip |
Merge pull request #22948 from kamipo/remove_delete_sql_in_sqlite3_adapter
Remove `delete_sql` in sqlite3 adapter
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb b/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb index ccb4e5b01c..b1cfb87a12 100644 --- a/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb @@ -285,11 +285,6 @@ module ActiveRecord @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 |