Re: [pgsql-advocacy] Oracle buys Innobase

From: Andrew Sullivan <ajs(at)crankycanuck(dot)ca>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: [pgsql-advocacy] Oracle buys Innobase
Date: 2005-10-20 15:28:34
Message-ID: 20051020152834.GB9291@phlogiston.dyndns.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-advocacy pgsql-general

On Wed, Oct 19, 2005 at 01:02:15PM -0300, Marc G. Fournier wrote:

> >that idiocy is that a string with two blank characters is not equal to a
> >string with a single blank character in Oracle. 'a ' is not equal to 'a
> >'. 'a ' is not equal to 'a'. Port that to another database. Seen the
> >JOIN syntax? *sigh*
>
> Wait, I've lost something here, apparently ... but that is the case with
> PostgreSQL as well:
>
> ams=# select ' a' = ' a';

Well, you didn't pick the same example, because leading blanks are
significant in the char() datatype:

andrewtest=# SELECT 'a '::char='a'::char;
?column?
----------
t
(1 ligne)

But is it the case that Oracle doesn't treat that one any differently
from this:

andrewtest=# SELECT 'a'||NULL::char='a'::char;
?column?
----------

(1 ligne)

If that's the case, it's pretty odd.

A

--
Andrew Sullivan | ajs(at)crankycanuck(dot)ca
When my information changes, I alter my conclusions. What do you do sir?
--attr. John Maynard Keynes

In response to

Browse pgsql-advocacy by date

  From Date Subject
Next Message Marc G. Fournier 2005-10-20 15:56:04 Re: Speakers wanted for Quebec PHP Conference
Previous Message Andrew Sullivan 2005-10-20 15:22:06 Re: Oracle and PostgreSQL...

Browse pgsql-general by date

  From Date Subject
Next Message Alban Hertroys 2005-10-20 15:35:30 3-state logic (was: Re: NULL != text ?)
Previous Message Brian Mathis 2005-10-20 15:22:25 Re: Select all invalid e-mail addresses