Re: [BUGS] postgres 9.0 beta libpq empty binary array error

2010-08-11 Thread Heikki Linnakangas
On 09/08/10 21:29, Heikki Linnakangas wrote: On 09/08/10 21:26, Tom Lane wrote: Heikki Linnakangas writes: The behavior of empty arrays with dimensions is weird in general. Agreed, but we shouldn't be introducing random restrictions in the name of security. Patch looks good to me, except tha

Re: [BUGS] postgres 9.0 beta libpq empty binary array error

2010-08-09 Thread Heikki Linnakangas
On 09/08/10 21:26, Tom Lane wrote: Heikki Linnakangas writes: The behavior of empty arrays with dimensions is weird in general. Agreed, but we shouldn't be introducing random restrictions in the name of security. Patch looks good to me, except that it occurs to me to wonder about negative va

Re: [BUGS] postgres 9.0 beta libpq empty binary array error

2010-08-09 Thread Tom Lane
Heikki Linnakangas writes: > The behavior of empty arrays with dimensions is weird in general. Agreed, but we shouldn't be introducing random restrictions in the name of security. Patch looks good to me, except that it occurs to me to wonder about negative values of dim[i]. For small negative v

Re: [BUGS] postgres 9.0 beta libpq empty binary array error

2010-08-09 Thread Heikki Linnakangas
On 09/08/10 17:56, Tom Lane wrote: writes: I have the problem: the code sending empty binary array works on 8.3 and 8.4 but stopped working on postgres 9.0 beta2/3/4, it fails with '22003','integer out of range error'. I think you are right --- this rejects dim[i] == 0, but it should not.

Re: [BUGS] postgres 9.0 beta libpq empty binary array error

2010-08-09 Thread Tom Lane
writes: > I have the problem: > the code sending empty binary array works on 8.3 and 8.4 > but stopped working on postgres 9.0 beta2/3/4, it fails with '22003','integer > out of range error'. I think you are right --- this rejects dim[i] == 0, but it should not. regard

[BUGS] postgres 9.0 beta libpq empty binary array error

2010-08-09 Thread vshahov
Hi, I'm using libpq PQexecParams ability to send query parameters as binary data, more specific - a binary representation of an empty array. I have the problem: the code sending empty binary array works on 8.3 and 8.4 but stopped working on postgres 9.0 beta2/3/4, it fails with '22003','intege