2018/12/11分のコミットです。
CHANGELOGへの追加はありませんでした。
Prevent write queries for exec_query
activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
、
activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb
の修正です。
exec_query
でqueryを実行する際にも、write queryのprevent処理を行うよう修正しています。
Prevent write queries with prepared statements for mysql2 adapter
activerecord/lib/active_record/connection_adapters/mysql/database_statements.rb
の修正です。
mysql2 adapter + prepared statementsでwrite queryのprevent処理が正しく動作していなかったのを修正しています。
Upgrade Rubocop to 0.61.1 and fix offenses
Rubocopのバージョンを0.61.1
に更新 + 各ファイルにcopを適用しています。
Don't treat begin and rollback transactions as write queries
Active Recordの修正です。
write queryのprevent処理で、begin / rollbackをwrite queryとして扱わないよう修正しています。
An explain query does not raise the ReadOnlyError
if preventing writes
Active Recordの修正です。
write queryのprevent処理で、explain queryをwrite queryとして扱わないよう修正しています。
Fix typos in click test descriptions [ci skip]
actionview/test/ujs/public/test/data-disable-with.js
の修正です。
test description内のタイポを修正しています。
Prepend module in ActiveStorage overview
rails guideのActive Storage Overview
の修正です。
Discarding Files Stored During Integration Tests
の項にあるIntegration testsでのファイル削除のexampleに誤りがあったのを修正しています。
An empty transaction does not raise the ReadOnlyError
if preventing writes
Active Recordの修正です。
write queryのprevent処理で、空のtransactionを実行した際にReadOnlyError
がraiseされてしまっていたのを、raiseされないよう修正しています。