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

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

commit b5f7e9a4c7c0125b73b156390a0e2fe8e32e2af5
Author: Kris Jurka <[email protected]>
Date:   Sat Apr 29 02:33:52 2006 +0000

    When we're unable to parse a timestamp value, the error message
    should print out the bad value.  It was printing a char array which
    showed up as a useless [C@xxxx.
    
    As noticed by Oliver Jowett.
---
 org/postgresql/jdbc2/TimestampUtils.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/org/postgresql/jdbc2/TimestampUtils.java 
b/org/postgresql/jdbc2/TimestampUtils.java
index 9365245..40b61a0 100644
--- a/org/postgresql/jdbc2/TimestampUtils.java
+++ b/org/postgresql/jdbc2/TimestampUtils.java
@@ -3,7 +3,7 @@
 * Copyright (c) 2003-2005, PostgreSQL Global Development Group
 *
 * IDENTIFICATION
-*   $PostgreSQL: pgjdbc/org/postgresql/jdbc2/TimestampUtils.java,v 1.17 
2005/10/07 04:27:16 jurka Exp $
+*   $PostgreSQL: pgjdbc/org/postgresql/jdbc2/TimestampUtils.java,v 1.18 
2005/10/25 22:44:27 davec Exp $
 *
 *-------------------------------------------------------------------------
 */
@@ -229,7 +229,7 @@ public class TimestampUtils {
                 throw new NumberFormatException("Timestamp has neither date 
nor time");
 
         } catch (NumberFormatException nfe) {
-            throw new PSQLException(GT.tr("Bad value for type {0} : {1}", new 
Object[]{type,s}), PSQLState.BAD_DATETIME_FORMAT, nfe);
+            throw new PSQLException(GT.tr("Bad value for type {0} : {1}", new 
Object[]{type,str}), PSQLState.BAD_DATETIME_FORMAT, nfe);
         }
 
         return result;

-- 
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