From: Attila Kevei <attila.kevei@mail.goodwill.hu>
To: Postgres SQL list <pgsql-sql@postgresql.org>
Subject: Re: select returns no line
Date: Tue, 23 Jan 2001 14:41:32 +0100 (CET)
Message-ID: <980257292.3a6d8a0cad5aa@www.goodwill.hu> (raw)
In-Reply-To: <3A6DA16A.67018D22@anpe.fr>
References: <980253179.3a6d79fb29871@www.goodwill.hu>
<3A6DA16A.67018D22@anpe.fr>
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.jacquot@anpe.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@swi.hu -x- attila.kevei@goodwill.hu -x- kisiksz@westel900.net -x
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: attila.kevei@mail.goodwill.hu
Subject: Re: select returns no line
In-Reply-To: <980257292.3a6d8a0cad5aa@www.goodwill.hu>
References: <980253179.3a6d79fb29871@www.goodwill.hu> <3A6DA16A.67018D22@anpe.fr> <980257292.3a6d8a0cad5aa@www.goodwill.hu>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox