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
Список
Дерево обсуждения
Return Codes of BatchUpdateException in PostgreSql 9.6 Tillmann Schulz <tillmann73@yahoo.de>
Re: Return Codes of BatchUpdateException in PostgreSql 9.6 John R Pierce <pierce@hogranch.com>
Re: Return Codes of BatchUpdateException in PostgreSql 9.6 Tillmann Schulz <tillmann73@yahoo.de>
Re: Return Codes of BatchUpdateException in PostgreSql 9.6 Bruce Momjian <bruce@momjian.us>
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
Дата:
От: John R Pierce
Дата:
FAQ