From: | Attila Kevei <attila(dot)kevei(at)mail(dot)goodwill(dot)hu> |
---|---|
To: | Postgres SQL list <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: select returns no line |
Date: | 2001-01-23 13:41:32 |
Message-ID: | 980257292.3a6d8a0cad5aa@www.goodwill.hu |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
No, there's no space.
The query (point 4. below) after the fix (point 3.) is the _same_ as the first
(p.1.).
In the first select there's no result but in the last select we get the right
result.
Attila
Quoting patrick(dot)jacquot(at)anpe(dot)fr:
1.
> > goodwill=>select * from users where user_login='test';
> > user_id|user_login|user_passwd|user_exp
> > -------+----------+-----------+--------
> > (0 rows)
> >
2.
> > goodwill=> select * from users where user_id=4;
> > user_id|user_login|user_passwd |user_exp
> > -------+----------+-------------+--------
> > 4|test |0PDv7a2EESjZo|
> > (1 row)
> >
3.
> > goodwill=> update users set user_login=user_login where user_id=4;
> > UPDATE
> > 1
> >
4.
> > goodwill=>select * from users where user_login='test';
> > user_id|user_login|user_passwd |user_exp
> > -------+----------+-------------+--------
> > 4|test |0PDv7a2EESjZo|
> > (1 row)
> >
>
> hello
> are you sure the value of the user_id in that line is "test" and not
> "test "
> i.e it has not spurious spaces at the end of it ?
> HTH
> Patrick
>
--
x- kisix(at)swi(dot)hu -x- attila(dot)kevei(at)goodwill(dot)hu -x- kisiksz(at)westel900(dot)net -x
From | Date | Subject | |
---|---|---|---|
Next Message | Volker Paul | 2001-01-23 14:24:08 | Re: select returns no line |
Previous Message | Attila Kevei | 2001-01-23 12:32:59 | select returns no line |