Re: [BUGS] Re: position('' in '') returns 1 instead of 0

2001-04-19 Thread Hiroshi Inoue
Terry Carlin wrote: > > I was wrong about the locate() function in the odbc driver. Thomas > Lockhart pointed out that it mapped locate in the driver to strpos in > postgres. This tweaked a memory. What happens with the locate() odbc > function in the odbc test suite is that it calls locate wit

Re: [BUGS] Re: position('' in '') returns 1 instead of 0

2001-04-18 Thread Hiroshi Inoue
Tom Lane wrote: > > Thomas Lockhart <[EMAIL PROTECTED]> writes: > > So now the question is what the ODBC standard says locate() should > > return. > > Wups. I neglected to notice the disconnect between the message subject > and body... but you are right, "locate" might not be the same as > "posi

[BUGS] Re: position('' in '') returns 1 instead of 0

2001-04-18 Thread Tom Lane
Thomas Lockhart <[EMAIL PROTECTED]> writes: > So now the question is what the ODBC standard says locate() should > return. Wups. I neglected to notice the disconnect between the message subject and body... but you are right, "locate" might not be the same as "position" :-(

[BUGS] Re: position('' in '') returns 1 instead of 0

2001-04-18 Thread Thomas Lockhart
> > While running an ODBC test suite against PostgreSQL 7.1, the test > > software reported that the ODBC command locate("", "") failed. > > It expected the result to be zero and it got a 1. > Evidently your ODBC test suite hasn't read the spec. See 4.2.2.2 in > either SQL92 or SQL99: >