Permalink
Browse files

Handle Java::OracleSql::TIMESTAMPTZ on jdbc/oracle

  • Loading branch information...
jeremyevans committed Dec 14, 2012
1 parent 0172ecc commit eea43ecc07a3bb515b65b244bda08bf2ee12f39e
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/sequel/adapters/jdbc/oracle.rb
@@ -97,10 +97,16 @@ def convert_type_oracle_timestamp(v)
db.to_application_timestamp(v.to_string)
end
+ def convert_type_oracle_timestamptz(v)
+ convert_type_oracle_timestamp(db.synchronize{|c| v.timestampValue(c)})
+ end
+
def convert_type_proc(v)
case v
when JAVA_BIG_DECIMAL
ORACLE_DECIMAL_METHOD
+ when Java::OracleSql::TIMESTAMPTZ
+ method(:convert_type_oracle_timestamptz)
when Java::OracleSql::TIMESTAMP
method(:convert_type_oracle_timestamp)
else

0 comments on commit eea43ec

Please sign in to comment.