From 5ec06b182e9e054deb8a04f65f8d7d001c371b3b Mon Sep 17 00:00:00 2001 From: Taketo Takashima Date: Mon, 11 Dec 2023 17:56:56 +0900 Subject: [PATCH] Added trilogy adapter for optimized mysql query --- lib/delayed/backend/active_record.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/delayed/backend/active_record.rb b/lib/delayed/backend/active_record.rb index 2c394243..2642c572 100644 --- a/lib/delayed/backend/active_record.rb +++ b/lib/delayed/backend/active_record.rb @@ -101,7 +101,7 @@ def self.reserve_with_scope_using_optimized_sql(ready_scope, worker, now) case connection.adapter_name when "PostgreSQL", "PostGIS" reserve_with_scope_using_optimized_postgres(ready_scope, worker, now) - when "MySQL", "Mysql2" + when "MySQL", "Mysql2", "Trilogy" reserve_with_scope_using_optimized_mysql(ready_scope, worker, now) when "MSSQL", "Teradata" reserve_with_scope_using_optimized_mssql(ready_scope, worker, now)