diff options
Diffstat (limited to 'lib/gitlab/pagination/keyset/in_operator_optimization/array_scope_columns.rb')
-rw-r--r-- | lib/gitlab/pagination/keyset/in_operator_optimization/array_scope_columns.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/gitlab/pagination/keyset/in_operator_optimization/array_scope_columns.rb b/lib/gitlab/pagination/keyset/in_operator_optimization/array_scope_columns.rb index 95afd5a8595..58963779c69 100644 --- a/lib/gitlab/pagination/keyset/in_operator_optimization/array_scope_columns.rb +++ b/lib/gitlab/pagination/keyset/in_operator_optimization/array_scope_columns.rb @@ -12,6 +12,7 @@ module Gitlab array_scope_table = Arel::Table.new(ARRAY_SCOPE_CTE_NAME) @columns = columns.map do |column| + column = column.right if column.is_a?(Arel::Nodes::As) ColumnData.new(column, "array_scope_#{column}", array_scope_table) end end |