Re: example.datestyle on 7.4?

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: example.datestyle on 7.4?
Дата
Msg-id Pine.LNX.4.33.0311142021570.14396-100000@leary.csoft.net
обсуждение исходный текст
Ответ на example.datestyle on 7.4?  (Larry Rosenman <ler@lerctr.org>)
Список pgsql-jdbc

On Fri, 14 Nov 2003, Larry Rosenman wrote:

> I'm new to jdbc, so please be gentle....
>
> I'm playing with a Beta version of Java 1.4.2 on UnixWare, and was playing
> with the examples/ directory.  Running the datestyle test:
>
> $ java example.datestyle jdbc:postgresql:ler <id> <pw>
> PostgreSQL datestyle test v6.3 rev 1
>
> Connecting to Database URL = jdbc:postgresql:ler
> Connected...Now creating a statement
>
> Running tests:
> Test 0 - postgres,europeanException caught.
> org.postgresql.util.PSQLException: A result was returned when none was
> expected.
>
> Does this example need mods for 7.4?

This was actually broken during the 7.3 release when SHOW results changed
from being returned in a NOTICE to being a query result.  As the initial
message indicates "PostgreSQL datestyle test v6.3 rev 1"  This code was
actually written for the 6.3 jdbc driver and according to the cvs logs it
hasn't been changed since except to reformat the code.

The example directory is really a primitive version of the full junit
regression test suite we have now in org.postgresql.test.  I think we
could easily do away with the example directory unless people are actually
using it for examples.

Kris Jurka


В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Larry Rosenman
Дата:
Сообщение: example.datestyle on 7.4?
Следующее
От: Ron St-Pierre
Дата:
Сообщение: JDBC Encoding Issue (...again...)