Return Codes of BatchUpdateException in PostgreSql 9.6

Поиск
Список
Период
Сортировка
От Tillmann Schulz
Тема Return Codes of BatchUpdateException in PostgreSql 9.6
Дата
Msg-id 1828260214.7688612.1476267837715@mail.yahoo.com
обсуждение исходный текст
Ответы Re: Return Codes of BatchUpdateException in PostgreSql 9.6  (John R Pierce <pierce@hogranch.com>)
Список pgsql-bugs
Hello,

I am migrating PostgreSql 9.5 to 9.6.0 and I am using the newest JDBC driver (9.4.1211.jre6)
So I am not sure if this is an driver issue or a bug in postgres.

We are making batch updates in our Java application.
Our JUnit Tests fail on 9.6 when querying the return code of a partially failed Bulk Update.  In 9.5 everything works
fine.


The following code is used:

    private void handleBatchUpdateException(java.sql.BatchUpdateException  x )
    {
        final int[] updateCounts = x.getUpdateCounts();

==> in 9.5 only ther failed updates have return code  java.sql.Statement.EXECUTE_FAILED = -3.  This is CORRECT.

==> in 9.6 all updatecounts have status  java.sql.Statement.EXECUTE_FAILED = -3. This is NOT CORRECT.


What to do to get this bug fixed? Do you need more information?
Thank you for your response in advance.

Tillmann Schulz

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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: 9.6 bug: select jsonb_set('[{"f1":1,"f2":null},2,null,3]', '{0}','[2,3,4]',
Следующее
От: John R Pierce
Дата:
Сообщение: Re: Return Codes of BatchUpdateException in PostgreSql 9.6