]> granicus.if.org Git - postgresql/commitdiff
Applied patch from Ryouichi Matsuda <r-matuda@sra.co.jp> where the jdbc
authorBarry Lind <barry@xythos.com>
Tue, 15 Jan 2002 06:55:13 +0000 (06:55 +0000)
committerBarry Lind <barry@xythos.com>
Tue, 15 Jan 2002 06:55:13 +0000 (06:55 +0000)
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
src/interfaces/jdbc/org/postgresql/jdbc2/Connection.java

index 4507a2728526348a402a17453aae029619afcf5f..4d3e087f76b65a170ee5724ea118318830ebd3d2 100644 (file)
@@ -17,7 +17,7 @@ import org.postgresql.largeobject.*;
 import org.postgresql.util.*;
 
 /*
- * $Id: Connection.java,v 1.14 2001/11/25 23:26:58 barry Exp $
+ * $Id: Connection.java,v 1.15 2002/01/15 06:55:13 barry Exp $
  *
  * A Connection represents a session with a specific database. Within the
  * context of a Connection, SQL statements are executed and results are
@@ -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
                                                                                        };
 
 
index 355c240fab02c9fc41fb0e22dca7e41da3c9631c..e3ff6393940c9ec52162eac95414bb373b119579 100644 (file)
@@ -17,7 +17,7 @@ import org.postgresql.largeobject.*;
 import org.postgresql.util.*;
 
 /*
- * $Id: Connection.java,v 1.16 2001/11/25 23:26:59 barry Exp $
+ * $Id: Connection.java,v 1.17 2002/01/15 06:55:13 barry Exp $
  *
  * A Connection represents a session with a specific database. Within the
  * context of a Connection, SQL statements are executed and results are
@@ -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,