'a' == 'a ' (Was: RE: [pgsql-advocacy] [GENERAL] Oracle buys Innobase)

Поиск
Список
Период
Сортировка
От Marc G. Fournier
Тема 'a' == 'a ' (Was: RE: [pgsql-advocacy] [GENERAL] Oracle buys Innobase)
Дата
Msg-id 20051019162859.S995@ganymede.hub.org
обсуждение исходный текст
Ответы Re: 'a' == 'a ' (Was: RE: [pgsql-advocacy] [GENERAL] Oracle buys  (Tino Wildenhain <tino@wildenhain.de>)
Список pgsql-hackers
I'm CC'ng this over to -hackers ... Tom?  Comments?

On Wed, 19 Oct 2005, Dann Corbit wrote:

> Yes, clearly that is the wrong result according to the SQL standard.
>
> Here is a SQL*Server query:
> select 1 where 'a' = 'a ' AND 'a' = 'a  ' AND 'a ' = 'a         '
>
> It returns (correctly): 1
>
>> -----Original Message-----
>> From: pgsql-general-owner@postgresql.org [mailto:pgsql-general-
>> owner@postgresql.org] On Behalf Of Marc G. Fournier
>> Sent: Wednesday, October 19, 2005 11:41 AM
>> To: Richard_D_Levine@raytheon.com
>> Cc: pgsql-general@postgresql.org
>> Subject: Re: [pgsql-advocacy] [GENERAL] Oracle buys Innobase
>>
>> 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)
>>
>> ----
>> Marc G. Fournier           Hub.Org Networking Services
>> (http://www.hub.org)
>> Email: scrappy@hub.org           Yahoo!: yscrappy              ICQ:
>> 7615664
>>
>> ---------------------------(end of
> broadcast)---------------------------
>> TIP 4: Have you searched our list archives?
>>
>>                http://archives.postgresql.org
>

----
Marc G. Fournier           Hub.Org Networking Services (http://www.hub.org)
Email: scrappy@hub.org           Yahoo!: yscrappy              ICQ: 7615664

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: A costing analysis tool
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Re: A costing analysis tool