pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
wrong parsing of "select version();"
3+ messages / 2 participants
[nested] [flat]

* wrong parsing of "select version();"
@ 2007-01-26 08:20  Eberhard Schulte <esc@pixelboxx.de>
  0 siblings, 2 replies; 3+ messages in thread

From: Eberhard Schulte @ 2007-01-26 08:20 UTC (permalink / raw)
  To: pgsql-jdbc

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



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: wrong parsing of "select version();"
@ 2007-01-26 08:31  Eberhard Schulte <esc@pixelboxx.de>
  parent: Eberhard Schulte <esc@pixelboxx.de>
  1 sibling, 0 replies; 3+ messages in thread

From: Eberhard Schulte @ 2007-01-26 08:31 UTC (permalink / raw)
  To: pgsql-jdbc

Hello,

sorry this report is ivalid!

Regards,

Eberhard Schulte


Eberhard Schulte schrieb:
> 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
> ------------------------------------------------
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 7: You can help support the PostgreSQL project by donating at
> 
>                http://www.postgresql.org/about/donate


-- 


Schönen Gruß

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



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: wrong parsing of "select version();"
@ 2007-01-26 16:43  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Eberhard Schulte <esc@pixelboxx.de>
  1 sibling, 0 replies; 3+ messages in thread

From: Tom Lane @ 2007-01-26 16:43 UTC (permalink / raw)
  To: Eberhard Schulte <esc@pixelboxx.de>; +Cc: pgsql-jdbc

Eberhard Schulte <esc@pixelboxx.de> writes:
> if I excute  "select version();", then I recieve: "7.3.4-RH".

Oy.  *Please* think about an update, soon.

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2007-01-26 16:43 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-01-26 08:20 wrong parsing of "select version();" Eberhard Schulte <esc@pixelboxx.de>
2007-01-26 08:31 ` Eberhard Schulte <esc@pixelboxx.de>
2007-01-26 16:43 ` Tom Lane <tgl@sss.pgh.pa.us>

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