Skip to content

Commit 41f0861

Browse files
committed
Add support for shared lock statement when using trilogy database adapter
1 parent 057e700 commit 41f0861

File tree

1 file changed

+1
-1
lines changed
  • lib/rails_ops/operation/model

1 file changed

+1
-1
lines changed

lib/rails_ops/operation/model/load.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def shared_lock_statement
116116
adapter_type = ActiveRecord::Base.connection.adapter_name.downcase.to_sym
117117

118118
case adapter_type
119-
when :mysql, :mysql2, :oracleenhanced
119+
when :mysql, :mysql2, :oracleenhanced, :trilogy
120120
return 'LOCK IN SHARE MODE'
121121
when :postgresql
122122
return 'FOR SHARE'

0 commit comments

Comments
 (0)