Class/Module Index [+]

Quicksearch

JdbcSpec::Sybase

Public Class Methods

adapter_matcher(name, *) click to toggle source
# File lib/jdbc_adapter/jdbc_sybase.rb, line 3
def self.adapter_matcher(name, *)
  name =~ /sybase|tds/ ? self : false
end

Public Instance Methods

remove_index(table_name, options = {}) click to toggle source
# File lib/jdbc_adapter/jdbc_sybase.rb, line 46
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/jdbc_adapter/jdbc_sybase.rb, line 30
def use_temp_table?
  !@limit.nil? && !@offset.nil? && @offset > 0
end
zero_limit?() click to toggle source
# File lib/jdbc_adapter/jdbc_sybase.rb, line 34
def zero_limit?
  !@limit.nil? && @limit == 0
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.