class Sequel::JDBC::AS400::Dataset

def select_limit_sql(sql)

Modify the sql to limit the number of rows returned
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