From: Eberhard Schulte <esc@pixelboxx.de>
To: pgsql-jdbc@postgresql.org
Subject: wrong parsing of "select version();"
Date: Fri, 26 Jan 2007 09:20:24 +0100
Message-ID: <45B9B9C8.2030600@pixelboxx.de> (raw)
Hello,
if I excute "select version();", then I recieve: "7.3.4-RH".
In the JDBC-Driver code however two of token are expected. A
NoSuchElementException could be thrown.
I think, there is a bug!
postgresql-jdbc-8.2-504.src.tar.gz:
ConnectionFactoryImpl.java line 426:
StringTokenizer versionParts = new StringTokenizer(rawDbVersion);
versionParts.nextToken(); /* "PostgreSQL" */
String dbVersion = versionParts.nextToken(); /* "X.Y.Z" */
Regards,
Eberhard Schulte
------------------------------------------------
Eberhard Schulte
Senior Software Engineer
Pixelboxx GmbH esc@pixelboxx.de
Ostenhellweg 56-58 http://www.pixelboxx.de/
44135 Dortmund (02 31) 5 34 63-207
------------------------------------------------
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: esc@pixelboxx.de
Subject: Re: wrong parsing of "select version();"
In-Reply-To: <45B9B9C8.2030600@pixelboxx.de>
References: <45B9B9C8.2030600@pixelboxx.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox