From ad88aae89c3f4ce71a0fb209073868da57400993 Mon Sep 17 00:00:00 2001 From: Barry Lind Date: Tue, 15 Jan 2002 06:55:13 +0000 Subject: [PATCH] Applied patch from Ryouichi Matsuda 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. --- src/interfaces/jdbc/org/postgresql/jdbc1/Connection.java | 4 ++-- src/interfaces/jdbc/org/postgresql/jdbc2/Connection.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/interfaces/jdbc/org/postgresql/jdbc1/Connection.java b/src/interfaces/jdbc/org/postgresql/jdbc1/Connection.java index 3d0a7c9f54..e84888a744 100644 --- a/src/interfaces/jdbc/org/postgresql/jdbc1/Connection.java +++ b/src/interfaces/jdbc/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/src/interfaces/jdbc/org/postgresql/jdbc2/Connection.java b/src/interfaces/jdbc/org/postgresql/jdbc2/Connection.java index 9ae76fd618..8189444b2c 100644 --- a/src/interfaces/jdbc/org/postgresql/jdbc2/Connection.java +++ b/src/interfaces/jdbc/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, -- 2.39.5