module ArJdbc::Sybase

Public Instance Methods

remove_index(table_name, options = {}) click to toggle source
# File lib/arjdbc/sybase/adapter.rb, line 43
def remove_index(table_name, options = {})
  execute "DROP INDEX #{table_name}.#{index_name(table_name, options)}"
end
use_temp_table?() click to toggle source

If limit is not set at all, we can ignore offset; if limit is set but offset is zero, use normal select with simple SET ROWCOUNT. Thus, only use the temp table if limit is set and offset > 0.

# File lib/arjdbc/sybase/adapter.rb, line 26
def use_temp_table?
  !@limit.nil? && !@offset.nil? && @offset > 0
end
zero_limit?() click to toggle source
# File lib/arjdbc/sybase/adapter.rb, line 30
def zero_limit?
  !@limit.nil? && @limit == 0
end