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

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

commit 5a7244a0597c27ac7c8dee0086a8684b0e983e35
Author: Kris Jurka <[email protected]>
Date:   Mon Apr 16 17:05:59 2007 +0000

    In an error message reporting an unparseable timestamp value the
    code was trying to put the unparseable portion into the error
    message, but used the wrong variable to get the correct length.
---
 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 b9075c1..f619b74 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.18.2.1 
2006/04/29 02:33:52 jurka Exp $
+*   $PostgreSQL: pgjdbc/org/postgresql/jdbc2/TimestampUtils.java,v 1.18.2.2 
2007/01/05 00:34:20 jurka Exp $
 *
 *-------------------------------------------------------------------------
 */
@@ -223,7 +223,7 @@ public class TimestampUtils {
             }
 
             if (start < slen)
-                throw new NumberFormatException("Trailing junk on timestamp: 
'" + new String(s, start, end - start) + "'");
+                throw new NumberFormatException("Trailing junk on timestamp: 
'" + new String(s, start, slen - start) + "'");
 
             if (!result.hasTime && !result.hasDate)
                 throw new NumberFormatException("Timestamp has neither date 
nor time");

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