Re: Possible bug / regression from generated keys

From: Peter Cooner <petriborg(at)gmail(dot)com>
To: Kris Jurka <books(at)ejurka(dot)com>
Cc: dmp <danap(at)ttc-cmc(dot)net>, pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Possible bug / regression from generated keys
Date: 2012-11-08 19:47:17
Message-ID: CAHVZnpGG5Gs4Dt=LrFL_L4y9O6yhkvig5Cq5ZaC_kSOFgB729A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Brilliant! I wonder why my test case doesn't do that, as its so close
to yours, alas.

I'm glad the problem has finally been exposed. Any idea why this
doesn't happen in the older driver? Did something change or is by
chance?

On Thu, Nov 8, 2012 at 1:45 PM, Kris Jurka <books(at)ejurka(dot)com> wrote:
>
>
> On Thu, 8 Nov 2012, Peter Cooner wrote:
>
>> I tried to write a test case for a few days before I mailed the list
>> and was unable to produce the problem :(
>
> Based on this description, I created a self contained test which is
> attached.
>
> The problem is that the driver is splicing together a single
> generated keys ResultSet from each individual batch execution, but
> some results come back in text format and some come back in binary.
> The combined result has a single per column format flag and it gets
> confused when trying to parse a text result that it thinks is in binary
> format.
>
> The driver needs to be taught not to change the requested format mid batch
> execution, but this is a tricky area.
>
> Kris Jurka

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Kris Jurka 2012-11-08 19:50:29 Re: Possible bug / regression from generated keys
Previous Message Kris Jurka 2012-11-08 18:45:36 Re: Possible bug / regression from generated keys