diff options
author | Yasuo Honda <yasuo.honda@gmail.com> | 2016-05-02 13:31:06 +0000 |
---|---|---|
committer | Yasuo Honda <yasuo.honda@gmail.com> | 2016-05-02 14:22:15 +0000 |
commit | f852b608d140addcbdc7ecb85d42eef0bbd512c5 (patch) | |
tree | 3ccf4d3fdc2668b587708c26dda7390ab4bbe12d /lib/arel.rb | |
parent | f2ad22320d82021277ab835d4d44bef5e8b61866 (diff) | |
download | rails-f852b608d140addcbdc7ecb85d42eef0bbd512c5.tar.gz rails-f852b608d140addcbdc7ecb85d42eef0bbd512c5.tar.bz2 rails-f852b608d140addcbdc7ecb85d42eef0bbd512c5.zip |
Raise ArgumentError if limit and lock are used for Oracle12 visitor
it would generates `SELECT ... FETCH FIRST n ROWS ONLY FOR UPDATE`
which causes Oracle 12c database returns this error :
ORA-02014: cannot select FOR UPDATE from view with DISTINCT, GROUP BY, etc.
Diffstat (limited to 'lib/arel.rb')
0 files changed, 0 insertions, 0 deletions