primary=(val)
click to toggle source
# File lib/arjdbc/oracle/adapter.rb, line 51 def primary=(val) super if val && @sql_type =~ /^NUMBER$/ @type = :integer end end
# File lib/arjdbc/oracle/adapter.rb, line 96 def self.guess_date_or_time(value) return value if value.is_a? Date ( value && value.hour == 0 && value.min == 0 && value.sec == 0 ) ? Date.new(value.year, value.month, value.day) : value end
# File lib/arjdbc/oracle/adapter.rb, line 92 def self.string_to_dummy_time(string) ::ActiveRecord::ConnectionAdapters::JdbcColumn.string_to_dummy_time(string) end
# File lib/arjdbc/oracle/adapter.rb, line 84 def self.string_to_time(string) return string unless string.is_a?(String) return nil if string.empty? return Time.now if string.index('CURRENT') == 0 # TODO seems very wrong ::ActiveRecord::ConnectionAdapters::JdbcColumn.string_to_time(string) end
# File lib/arjdbc/oracle/adapter.rb, line 58 def extract_limit(sql_type) case sql_type when /^(clob|date)/; nil else super end end
# File lib/arjdbc/oracle/adapter.rb, line 51 def primary=(val) super if val && @sql_type =~ /^NUMBER$/ @type = :integer end end
Generated with the Darkfish Rdoc Generator 2.