Re: Regression in 8.3?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: depesz(at)depesz(dot)com
Cc: Patric Bechtel <patric(dot)bechtel(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Regression in 8.3?
Date: 2007-11-12 16:26:09
Message-ID: 6645.1194884769@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

hubert depesz lubaczewski <depesz(at)depesz(dot)com> writes:
> on the other hand. while i know and understand why there can't be "="
> operator for text and int, i think that "like" could be readded as it is
> really clear about how it works.

Really?

regression=# select '8.12345678901234567890' ~~ '%67890' ;
?column?
----------
t
(1 row)

regression=# select '8.12345678901234567890'::numeric ~~ '%67890' ;
?column?
----------
t
(1 row)

regression=# select '8.12345678901234567890'::float8 ~~ '%67890' ;
?column?
----------
f
(1 row)

regression=# select '8.12345678901234567890'::char(50) ~~ '%67890' ;
?column?
----------
f
(1 row)

Yup, the behavior of LIKE before 8.3 was just as datatype-independent
as could be.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Erwin Moller 2007-11-12 16:27:38 Strange error while working with derived table
Previous Message Reg Me Please 2007-11-12 16:25:59 Re: Filter tables