'a ' = 'a ' by MySQL(Re: [pgsql-advocacy] Oracle buys Innobase) - Mailing list pgsql-general

From J.Kuwamura
Subject 'a ' = 'a ' by MySQL(Re: [pgsql-advocacy] Oracle buys Innobase)
Date
Msg-id 20051020110735.7e62fc50.juk@rccm.co.jp
Whole thread Raw
In response to Re: [pgsql-advocacy] Oracle buys Innobase  ("Marc G. Fournier" <scrappy@postgresql.org>)
List pgsql-general
On Wed, 19 Oct 2005 15:40:44 -0300 (ADT)
"Marc G. Fournier" <scrappy@postgresql.org> wrote:

> On Wed, 19 Oct 2005, Richard_D_Levine@raytheon.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
   ^
   ~

pgsql-general by date:

Previous
From: Chris Travers
Date:
Subject: Re: [HACKERS] 'a' == 'a '
Next
From: CSN
Date:
Subject: update trigger not working