getArray() fails to handle some string array cases

Поиск
Список
Период
Сортировка
От Oliver Jowett
Тема getArray() fails to handle some string array cases
Дата
Msg-id 20030720133327.GK32403@opencloud.com
обсуждение исходный текст
Ответы Re: getArray() fails to handle some string array cases  (Dima Tkach <dmitry@openratings.com>)
Список pgsql-jdbc
While playing with an implementation of setArray() I've found a case where
the existing getArray() implementation does not parse an array result
correctly. The attached testcase produces:

    [junit] Testcase: testStringArray(org.postgresql.test.jdbc2.GetArrayTest):  FAILED
    [junit] driver element 2: expected:<"> but was:<,',\>
    [junit] junit.framework.AssertionFailedError: driver element 2: expected:<"> but was:<,',\>
    [junit]     at org.postgresql.test.jdbc2.GetArrayTest.testStringArray(GetArrayTest.java:125)
    [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [junit]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

I'm not going to have time to track the cause of this down, but maybe the
testcase is useful to someone else.

-O

Вложения

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

Предыдущее
От: Oliver Jowett
Дата:
Сообщение: patch: fix exceptions from ResultSet.getArray()
Следующее
От: pginfo
Дата:
Сообщение: Re: jdbc batch performance problem