From b6472faeac00a74f902182ff7de5edaf803eba2b Mon Sep 17 00:00:00 2001 From: John Nunemaker Date: Tue, 19 Dec 2023 16:46:38 -0500 Subject: [PATCH] Use top level sequel to qualify table and column name xref https://github.com/flippercloud/flipper/issues/800 --- lib/flipper/adapters/sequel.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/flipper/adapters/sequel.rb b/lib/flipper/adapters/sequel.rb index 8058db8fd..67f065034 100644 --- a/lib/flipper/adapters/sequel.rb +++ b/lib/flipper/adapters/sequel.rb @@ -104,9 +104,9 @@ def get_multi(features) def get_all feature_table = @feature_class.table_name.to_sym gate_table = @gate_class.table_name.to_sym - features_sql = @feature_class.select(:key.qualify(feature_table).as(:feature_key)) - .select_append(:key.qualify(gate_table)) - .select_append(:value.qualify(gate_table)) + features_sql = @feature_class.select(::Sequel.qualify(feature_table, :key).as(:feature_key)) + .select_append(::Sequel.qualify(gate_table, :key)) + .select_append(::Sequel.qualify(gate_table, :value)) .left_join(@gate_class.table_name.to_sym, feature_key: :key) .sql