diff options
author | Sean Griffin <sean@seantheprogrammer.com> | 2016-12-05 14:07:39 -0500 |
---|---|---|
committer | Sean Griffin <sean@seantheprogrammer.com> | 2016-12-05 14:07:39 -0500 |
commit | fd87169eb11fc4cfd9082dabe0a85f3bfa385c29 (patch) | |
tree | 596be4df7d0d523dc5a1734eaef620dcefe98a17 /activerecord/lib/active_record/locking/pessimistic.rb | |
parent | d8533e116e9f951f0dd9c2abcc916627ff49dd64 (diff) | |
download | rails-fd87169eb11fc4cfd9082dabe0a85f3bfa385c29.tar.gz rails-fd87169eb11fc4cfd9082dabe0a85f3bfa385c29.tar.bz2 rails-fd87169eb11fc4cfd9082dabe0a85f3bfa385c29.zip |
Don't try to run multiple insert queries at once
SQLite's default query interface ignores anything after the first
semicolon in a query. This is actually quite common behavior in database
drivers, especially when dealing with code paths for prepared statements
(which we are). While this should only affect SQLite, as I'm not aware
of any drivers which don't support multi-insert. Even if this does
affect other third party drivers though, I'd prefer not to assume that
more than one query can be executed per call to `execute`.
Fixes #26948.
Close #27242.
Diffstat (limited to 'activerecord/lib/active_record/locking/pessimistic.rb')
0 files changed, 0 insertions, 0 deletions