Skip site navigation (1) Skip section navigation (2)

PostgreSQL BugTool Submission

From: pgsql-bugs(at)postgresql(dot)org
To: pgsql-bugs(at)postgresql(dot)org
Subject: PostgreSQL BugTool Submission
Date: 2000-08-23 16:59:55
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugs
Gregg Wonderly (gregg(at)c2-tech(dot)com) reports a bug with a severity of 1
The lower the number the more severe it is.

Short Description
JDBC driver broken for ResultSet.getTimeStamp()

Long Description
The JDBC driver in 7.0.2 uses Timestamp.toString() to create the string representation of the timestamp to store into postgresql.
It should use Timestamp.valueOf(String) to go back to the native
Timestamp value.  However, it uses SimpleDateFormat.parse() instead
and this will not work correctly.  Parse Exceptions occur and the data can not be retrieved from the database as a Timestamp.

Sample Code

No file was uploaded with this report

pgsql-bugs by date

Next:From: pgsql-bugsDate: 2000-08-23 18:54:42
Subject: PostgreSQL BugTool Submission
Previous:From: Gabor Z. PappDate: 2000-08-23 11:07:58
Subject: Error: unknown type 'ame'

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group