class Sequel::JDBC::AS400::Dataset
Constants
- FETCH_FIRST
- FETCH_FIRST_ROW_ONLY
- ROWS_ONLY
- WILDCARD
Public Instance Methods
select_limit_sql(sql)
click to toggle source
Modify the sql to limit the number of rows returned
# File lib/sequel/adapters/jdbc/as400.rb, line 67 def select_limit_sql(sql) if l = @opts[:limit] if l == 1 sql << FETCH_FIRST_ROW_ONLY elsif l > 1 sql << FETCH_FIRST literal_append(sql, l) sql << ROWS_ONLY end end end
supports_window_functions?()
click to toggle source
# File lib/sequel/adapters/jdbc/as400.rb, line 79 def supports_window_functions? true end