postgresql-jdbc.git / summary / log / commit / refs
commit c768bd098bbd7c339c539ee64ae8412d0cdac2d2
Author: Barry Lind <barry@xythos.com>
Date: Tue Jan 15 06:55:13 2002 +0000
Applied patch from Ryouichi Matsuda <r-matuda@sra.co.jp> where the jdbc
driver was not properly handling timestamptz datatype when using the
getObject() method on ResultSet. Fix adds this datatype to the object mappings.
org/postgresql/jdbc1/Connection.java | 4 ++--
org/postgresql/jdbc2/Connection.java | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/org/postgresql/jdbc1/Connection.java b/org/postgresql/jdbc1/Connection.java
index 3d0a7c9f..e84888a7 100644
--- a/org/postgresql/jdbc1/Connection.java
+++ b/org/postgresql/jdbc1/Connection.java
@@ -180,7 +180,7 @@ public class Connection extends org.postgresql.Connection implements java.sql.Co
"bool",
"date",
"time",
- "abstime", "timestamp"
+ "abstime", "timestamp", "timestamptz"
};
/*
@@ -204,7 +204,7 @@ public class Connection extends org.postgresql.Connection implements java.sql.Co
Types.BIT,
Types.DATE,
Types.TIME,
- Types.TIMESTAMP, Types.TIMESTAMP
+ Types.TIMESTAMP, Types.TIMESTAMP, Types.TIMESTAMP
};
diff --git a/org/postgresql/jdbc2/Connection.java b/org/postgresql/jdbc2/Connection.java
index 9ae76fd6..8189444b 100644
--- a/org/postgresql/jdbc2/Connection.java
+++ b/org/postgresql/jdbc2/Connection.java
@@ -303,7 +303,7 @@ public class Connection extends org.postgresql.Connection implements java.sql.Co
"bool",
"date",
"time",
- "abstime", "timestamp",
+ "abstime", "timestamp", "timestamptz",
"_bool", "_char", "_int2", "_int4", "_text",
"_oid", "_varchar", "_int8", "_float4", "_float8",
"_abstime", "_date", "_time", "_timestamp", "_numeric",
@@ -331,7 +331,7 @@ public class Connection extends org.postgresql.Connection implements java.sql.Co
Types.BIT,
Types.DATE,
Types.TIME,
- Types.TIMESTAMP, Types.TIMESTAMP,
+ Types.TIMESTAMP, Types.TIMESTAMP, Types.TIMESTAMP,
Types.ARRAY, Types.ARRAY, Types.ARRAY, Types.ARRAY, Types.ARRAY,
Types.ARRAY, Types.ARRAY, Types.ARRAY, Types.ARRAY, Types.ARRAY,
Types.ARRAY, Types.ARRAY, Types.ARRAY, Types.ARRAY, Types.ARRAY,
[parent: 74b58ea9308a]