Обсуждение: wrong parsing of "select version();"

Поиск
Список
Период
Сортировка

wrong parsing of "select version();"

От
Eberhard Schulte
Дата:
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
------------------------------------------------

Re: wrong parsing of "select version();"

От
Eberhard Schulte
Дата:
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
------------------------------------------------

Re: wrong parsing of "select version();"

От
Tom Lane
Дата:
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