Re: MyBatis Batch Update Leads to PSQLException "Too many update results were returned"

From: Dave Cramer <pg(at)fastcrypt(dot)com>
To: Chris Dole <chris(dot)dole(at)sas(dot)com>
Cc: List <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: MyBatis Batch Update Leads to PSQLException "Too many update results were returned"
Date: 2018-03-04 17:49:14
Message-ID: CADK3HHLo-grJG4sZHVaVi8GUceRNvfVu96bfD3FKCHW0pbJL-w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Dave Cramer

davec(at)postgresintl(dot)com
www.postgresintl.com

On 4 March 2018 at 09:34, Chris Dole <chris(dot)dole(at)sas(dot)com> wrote:

> Hi Dave,
>
> I am certainly willing to follow up on that, and will do so. I can turn on
> debugging with MyBatis and perhaps capture the query pattern that is being
> generated.
>
> However, it would help to get some background on the PSQLException that is
> being thrown.
>
> * What is the nature of the error?
>
> * What does Postgres or its JDBC driver imply about the query for the
> message of "... too many updates ..."
>
> * Can you give me an indication of what logic is being tripped over that
> leads to this error condition?
>

I'd have to do some more investigation but start here.

https://github.com/pgjdbc/pgjdbc/blob/e6a1eccb148c3c59e8cf122e98ad01afc5bb555a/pgjdbc/src/main/java/org/postgresql/jdbc/BatchResultHandler.java#L92

>
> Thanks,
> Chris
>
>
>
>
> --
> Sent from: http://www.postgresql-archive.org/PostgreSQL-jdbc-f2168246.html
>
>

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Bear Giles 2018-03-05 18:24:06 TimeZone issue with 42.2.1
Previous Message Chris Dole 2018-03-04 14:34:32 Re: MyBatis Batch Update Leads to PSQLException "Too many update results were returned"