Skip to content

Commit d013dbe

Browse files
author
Barry Lind
committed
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.
1 parent eb410b6 commit d013dbe

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/interfaces/jdbc/org/postgresql/jdbc1/Connection.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import org.postgresql.util.*;
1818

1919
/*
20-
* $Id: Connection.java,v 1.14 2001/11/25 23:26:58 barry Exp $
20+
* $Id: Connection.java,v 1.15 2002/01/15 06:55:13 barry Exp $
2121
*
2222
* A Connection represents a session with a specific database. Within the
2323
* context of a Connection, SQL statements are executed and results are
@@ -180,7 +180,7 @@ public int getSQLType(String pgTypeName)
180180
"bool",
181181
"date",
182182
"time",
183-
"abstime", "timestamp"
183+
"abstime", "timestamp", "timestamptz"
184184
};
185185

186186
/*
@@ -204,7 +204,7 @@ public int getSQLType(String pgTypeName)
204204
Types.BIT,
205205
Types.DATE,
206206
Types.TIME,
207-
Types.TIMESTAMP, Types.TIMESTAMP
207+
Types.TIMESTAMP, Types.TIMESTAMP, Types.TIMESTAMP
208208
};
209209

210210

src/interfaces/jdbc/org/postgresql/jdbc2/Connection.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import org.postgresql.util.*;
1818

1919
/*
20-
* $Id: Connection.java,v 1.16 2001/11/25 23:26:59 barry Exp $
20+
* $Id: Connection.java,v 1.17 2002/01/15 06:55:13 barry Exp $
2121
*
2222
* A Connection represents a session with a specific database. Within the
2323
* context of a Connection, SQL statements are executed and results are
@@ -303,7 +303,7 @@ public int getSQLType(String pgTypeName)
303303
"bool",
304304
"date",
305305
"time",
306-
"abstime", "timestamp",
306+
"abstime", "timestamp", "timestamptz",
307307
"_bool", "_char", "_int2", "_int4", "_text",
308308
"_oid", "_varchar", "_int8", "_float4", "_float8",
309309
"_abstime", "_date", "_time", "_timestamp", "_numeric",
@@ -331,7 +331,7 @@ public int getSQLType(String pgTypeName)
331331
Types.BIT,
332332
Types.DATE,
333333
Types.TIME,
334-
Types.TIMESTAMP, Types.TIMESTAMP,
334+
Types.TIMESTAMP, Types.TIMESTAMP, Types.TIMESTAMP,
335335
Types.ARRAY, Types.ARRAY, Types.ARRAY, Types.ARRAY, Types.ARRAY,
336336
Types.ARRAY, Types.ARRAY, Types.ARRAY, Types.ARRAY, Types.ARRAY,
337337
Types.ARRAY, Types.ARRAY, Types.ARRAY, Types.ARRAY, Types.ARRAY,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy