Re: JDBC drive 42 release breaks seriously for RETURNING?

From: Tom Smith <tomsmith1989sk(at)gmail(dot)com>
To: Jorge Solórzano <jorsol(at)gmail(dot)com>
Cc: List <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: JDBC drive 42 release breaks seriously for RETURNING?
Date: 2017-06-17 20:40:46
Message-ID: CAKwSVFHm0m2JmR-ComSoA0RHoH8oU5sW665JfrwZgQvGNa6vTQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Something like below

sqlInsert = "insert into aTable ((select nextval()), "stringdata")
pstmt connection.prepareStatement(sqlInsert, new String[]{"id"})
pstmt.executeUpdate()
resultSet = pstmt.getGeneratedKeys() ---> resultset is empty using 42
series, but one row returned using 94. series

On Sat, Jun 17, 2017 at 2:58 PM, Jorge Solórzano <jorsol(at)gmail(dot)com> wrote:

> Hello Tom:
>
> Could you please provide an example code that reproduce the issue?
>
> Jorge Solórzano
>
>
> On Sat, Jun 17, 2017 at 10:38 AM, Tom Smith <tomsmith1989sk(at)gmail(dot)com>
> wrote:
>
>> Hello:
>>
>>
>> I have a working call using
>>
>> connection.prepareStatement(sqlInsert, generatedIds)
>>
>> and get the expected resultset after insertion using 9.4 series driver.
>> I just upgraded to 42 series latest, it is not getting the resultset
>> anymore.
>>
>> I downgraded to 9.4 drive and it worked again. It is a bit shocking.
>> Is it a bug or change?
>>
>> Thanks
>>
>>
>

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dave Cramer 2017-06-17 20:53:49 Re: JDBC drive 42 release breaks seriously for RETURNING?
Previous Message Jorge Solórzano 2017-06-17 18:58:40 Re: JDBC drive 42 release breaks seriously for RETURNING?