Re: ArrayIndexOutOfBoundsException from ByteConverter.int8 when resolving generated keys

From: Vladimir Sitnikov <sitnikov(dot)vladimir(at)gmail(dot)com>
To: Erko Hansar <erko(dot)hansar(at)gmail(dot)com>
Cc: Dave Cramer <pg(at)fastcrypt(dot)com>, List <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: ArrayIndexOutOfBoundsException from ByteConverter.int8 when resolving generated keys
Date: 2017-05-10 11:37:07
Message-ID: CAB=Je-HhhqRJBenYjj3x=RpO8Cipg-nyFZXy1OmzF3W4vg4GQg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Erko>2) There was a similar problem discussed in 2012, which ended with an
explanation:
https://www.postgresql.org/message-id/alpine.BSO.2.00.1211081338240.29600%40leary.csoft.net

I though "text-binary" flip might cause issue here. bigserial is an alias
for int8, and int8 binary representation is 8 bytes always.

Erko, if you file a pull request https://github.com/pgjdbc/pgjdbc with a
test case, then it would get executed and we'll know if the issue is still
there and/or which DB versions are affected.

Vladimir

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Vladimir Sitnikov 2017-05-10 20:35:14 Re: ArrayIndexOutOfBoundsException from ByteConverter.int8 when resolving generated keys
Previous Message Dave Cramer 2017-05-10 11:26:52 Re: ArrayIndexOutOfBoundsException from ByteConverter.int8 when resolving generated keys