lib/engine2/post_bootstrap.rb in engine2-1.0.4 vs lib/engine2/post_bootstrap.rb in engine2-1.0.5
- old
+ new
@@ -1,6 +1,7 @@
# coding: utf-8
+# frozen_string_literal: true
module Sequel
module SequelFixes
def self.fix_aliased_expression ds
ds.get_opts[:select].map do |sel|
@@ -29,13 +30,13 @@
end
# columns = clone(:append_sql=>'', :placeholder_literal_null=>true).columns
columns = SequelFixes.fix_aliased_expression(clone(:append_sql=>'', :placeholder_literal_null=>true))
dsa1 = dataset_alias(1)
rn = row_number_column
- sql = @opts[:append_sql] || ''
+ sql = @opts[:append_sql] || String.new
subselect_sql_append(sql, unlimited.
unordered.
- select_append{ROW_NUMBER{}.over(:order=>order).as(rn)}.
+ select_append{:ROW_NUMBER.sql_function.over(:order=>order).as(rn)}.
from_self(:alias=>dsa1).
select(*columns).
limit(@opts[:limit]).
where(SQL::Identifier.new(rn) > offset).
order(rn))