REMOVE411
The function to use, should be an SQL::Function
.
The window to use, should be an SQL::Window
.
# File lib/sequel/sql.rb, line 1838 def self.new(function, window) Deprecation.deprecate("Sequel::SQL::WindowFunction", "Please use Sequel::SQL::Function.new(name, *args).over(...) to create an SQL window function") function.over(window) end
Set the function and window.
# File lib/sequel/sql.rb, line 1844 def initialize(function, window) Deprecation.deprecate("Sequel::SQL::WindowFunction", "Please use Sequel::SQL::Function.new(name, *args).over(...) to create an SQL window function") @function, @window = function, window end