This is an automated email from the git hooks/post-receive script.

ebourg-guest pushed a commit to tag REL8_1_415
in repository libpostgresql-jdbc-java.

commit 8d2385f0e0a9bcc88f75a43a7afc1baef24589eb
Author: Kris Jurka <[email protected]>
Date:   Sat May 1 16:08:13 2010 +0000

    When setNull is called with a TIME or TIMESTAMP type we cannot pass
    that type information on to the backend because we really don't know
    whether it is with or without a time zone.  For a NULL value it
    doesn't matter, but we can't establish a type because a later call
    with a non-null value using the same PreparedStatement can
    potentially end up using a specific type that is incorrect.
    
    Per example from Martti Jeenicke
---
 org/postgresql/jdbc2/AbstractJdbc2Statement.java | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/org/postgresql/jdbc2/AbstractJdbc2Statement.java 
b/org/postgresql/jdbc2/AbstractJdbc2Statement.java
index 75ff896..8949812 100644
--- a/org/postgresql/jdbc2/AbstractJdbc2Statement.java
+++ b/org/postgresql/jdbc2/AbstractJdbc2Statement.java
@@ -3,7 +3,7 @@
 * Copyright (c) 2004-2005, PostgreSQL Global Development Group
 *
 * IDENTIFICATION
-*   $PostgreSQL: pgjdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java,v 
1.84.2.14 2009/05/27 23:55:43 jurka Exp $
+*   $PostgreSQL: pgjdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java,v 
1.84.2.15 2009/09/26 15:21:45 jurka Exp $
 *
 *-------------------------------------------------------------------------
 */
@@ -1065,10 +1065,8 @@ public abstract class AbstractJdbc2Statement implements 
BaseStatement
             oid = Oid.DATE;
             break;
         case Types.TIME:
-            oid = Oid.TIME;
-            break;
         case Types.TIMESTAMP:
-            oid = Oid.TIMESTAMPTZ;
+            oid = Oid.INVALID;
             break;
         case Types.BIT:
             oid = Oid.BOOL;

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-java/libpostgresql-jdbc-java.git

_______________________________________________
pkg-java-commits mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-commits

Reply via email to