From: | "J(dot)Kuwamura" <juk(at)rccm(dot)co(dot)jp> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | 'a ' = 'a ' by MySQL(Re: [pgsql-advocacy] Oracle buys Innobase) |
Date: | 2005-10-20 02:07:35 |
Message-ID: | 20051020110735.7e62fc50.juk@rccm.co.jp |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-advocacy pgsql-general |
On Wed, 19 Oct 2005 15:40:44 -0300 (ADT)
"Marc G. Fournier" <scrappy(at)postgresql(dot)org> wrote:
> On Wed, 19 Oct 2005, Richard_D_Levine(at)raytheon(dot)com wrote:
>
> > I was referring to trailing blanks, but did not explicitly say it,
> > though showed it in the examples. I am pretty sure that the SQL
> > standard says that trailing whitespace is insignificant in string
> > comparison.
>
> Then we are broken too :)
>
> # select 'a ' = 'a ';
> ?column?
> ----------
> f
> (1 row)
>
> ----
Here MySQL(4.0.20-Max-log) answer. I'm not familiar with mysql but the
result was your expect.
--
mysql> select ' a' = ' a';
+--------------+
| ' a' = ' a' |
+--------------+
| 0 |
+--------------+
1 row in set (0.00 sec)
mysql> select ' a' = ' a';
+-------------+
| ' a' = ' a' |
+-------------+
| 1 |
+-------------+
1 row in set (0.00 sec)
mysql> select 'a ' = 'a ';
+---------------+
| 'a ' = 'a ' |
+---------------+
| 1 |
+---------------+
1 row in set (0.00 sec)
mysql>
--
==Jun
--
J.Kuwamura
rC Cm
^
~
From | Date | Subject | |
---|---|---|---|
Next Message | Jason Earl | 2005-10-20 04:13:32 | Re: [pgsql-advocacy] Oracle buys Innobase |
Previous Message | Robert Bernier | 2005-10-20 00:19:06 | Re: Speakers wanted for Quebec PHP Conference |
From | Date | Subject | |
---|---|---|---|
Next Message | CSN | 2005-10-20 02:26:52 | update trigger not working |
Previous Message | Chris Travers | 2005-10-20 02:07:21 | Re: [HACKERS] 'a' == 'a ' |