# File lib/sequel/adapters/shared/oracle.rb, line 106 def empty? db[:dual].where(exists).get(1) == nil end
Oracle uses MINUS instead of EXCEPT, and doesn't support EXCEPT ALL
# File lib/sequel/adapters/shared/oracle.rb, line 100 def except(dataset, opts={}) opts = {:all=>opts} unless opts.is_a?(Hash) raise(Sequel::Error, "EXCEPT ALL not supported") if opts[:all] compound_clone(:minus, dataset, opts) end
If this dataset is associated with a sequence, return the most recently inserted sequence value.
# File lib/sequel/adapters/shared/oracle.rb, line 112 def insert(*args) r = super if s = opts[:sequence] with_sql("SELECT #{literal(s)}.currval FROM dual").single_value.to_i else r end end
Create a copy of this dataset associated to the given sequence name, which will be used when calling insert to find the most recently inserted value for the sequence.
# File lib/sequel/adapters/shared/oracle.rb, line 129 def sequence(s) clone(:sequence=>s) end
Oracle does not support INTERSECT ALL or EXCEPT ALL
# File lib/sequel/adapters/shared/oracle.rb, line 134 def supports_intersect_except_all? false end
Oracle supports timezones in literal timestamps.
# File lib/sequel/adapters/shared/oracle.rb, line 139 def supports_timestamp_timezones? true end
Oracle supports window functions
# File lib/sequel/adapters/shared/oracle.rb, line 144 def supports_window_functions? true end
Generated with the Darkfish Rdoc Generator 2.