Re: where clause bug - Mailing list pgsql-bugs

From Peter Eisentraut
Subject Re: where clause bug
Date
Msg-id Pine.LNX.4.30.0106112001410.756-100000@peter.localdomain
Whole thread Raw
In response to Re: where clause bug  (Nabil Sayegh <nsmail@sayegh.de>)
List pgsql-bugs
Nabil Sayegh writes:

> > > When specifying criteria in a where claue such as
> > > user_id = 'value' if a non-numeric is entered the
> > > query returns back all rows.
>
> nml=# CREATE temp table tempo (a int);
> nml=# INSERT INTO tempo values (1);
> nml=# INSERT INTO tempo values (2);
> nml=# INSERT INTO tempo values (3);
> nml=# INSERT INTO tempo values (4);
> nml=# SELECT * from tempo where a='a';
> ERROR:  pg_atoi: error in "a": can't parse "a"
>
> > > user_id = user_id brings back every user_id instead of
>
> FIELD_N = FIELD_N is always true

I don't see an issue here.

--
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter

pgsql-bugs by date:

Previous
From: Nabil Sayegh
Date:
Subject: Re: where clause bug
Next
From: "Cary O'Brien"
Date:
Subject: Index files grow forever?