Skip to content

Commit 8b79af8

Browse files
committed
SQLite3Adapter: add missing event name for BEGIN TRANSACTION
It's a transaction management query, and should be tagged as such.
1 parent 1ecc84a commit 8b79af8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activerecord/lib/active_record/connection_adapters/sqlite3/database_statements.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def internal_begin_transaction(mode, isolation)
6868
raise StandardError, "You need to enable the shared-cache mode in SQLite mode before attempting to change the transaction isolation level" unless shared_cache?
6969
end
7070

71-
internal_execute("BEGIN #{mode} TRANSACTION", allow_retry: true, materialize_transactions: false)
71+
internal_execute("BEGIN #{mode} TRANSACTION", "TRANSACTION", allow_retry: true, materialize_transactions: false)
7272
if isolation
7373
@previous_read_uncommitted = query_value("PRAGMA read_uncommitted")
7474
internal_execute("PRAGMA read_uncommitted=ON", "TRANSACTION", allow_retry: true, materialize_transactions: false)

0 commit comments

Comments
 (0)