Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit eea43ecc07a3bb515b65b244bda08bf2ee12f39e 1 parent 0172ecc
@jeremyevans authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/sequel/adapters/jdbc/oracle.rb
View
6 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
Please sign in to comment.
Something went wrong with that request. Please try again.