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

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

commit e0c848ab91aee50d31008a67a6ff9a1cbb3ee67c
Author: Kris Jurka <[email protected]>
Date:   Mon Apr 16 17:05:55 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 77c1cae..62848cf 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.19 
2006/04/29 02:33:46 jurka Exp $
+*   $PostgreSQL: pgjdbc/org/postgresql/jdbc2/TimestampUtils.java,v 1.19.2.1 
2007/01/05 00:34:13 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