Re: Possible bug / regression from generated keys

Поиск
Список
Период
Сортировка
От Dave Cramer
Тема Re: Possible bug / regression from generated keys
Дата
Msg-id CADK3HHKPv=8M0TuV6EoDgxpaAhgRjEgt93a9iwN4_VsEVoEw2A@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Possible bug / regression from generated keys  (dmp <danap@ttc-cmc.net>)
Список pgsql-jdbc
So I had a quick look at the code and the only way it gets into this code is through a test which is essentially

if ( isBinary and isINT8 ) 

So unless the backend is sending an int8 as less than 8 bytes or there is some other bug in the JDBC code in which it gets confused as to what it is pointing to I don't see how it gets to this exception.

Dave

Dave Cramer

dave.cramer(at)credativ(dot)ca
http://www.credativ.ca



On Wed, Nov 7, 2012 at 8:04 PM, dmp <danap@ttc-cmc.net> wrote:
I can try as indicated to rebuild the jar so that Peter could have an output
of the exact value that is throwing the error when it occurs. To limit output
I would then recommend a case that would throw the error soon with as little data processing as possible. Let me know if this maybe something I could do
to help.

danap.


Dave Cramer wrote:
Well there is a relatively easy fix that would get rid of the problem.
Currently we don't check the length of the array that we are trying to
convert. However I'd like to understand how the problem is manifest
before doing that.

Dave

Dave Cramer

dave.cramer(at)credativ(dot)ca
http://www.credativ.ca

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Craig Ringer
Дата:
Сообщение: Re: Error while returning auto-generated values
Следующее
От: Peter Cooner
Дата:
Сообщение: Re: Possible bug / regression from generated keys