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 22:18:28
Message-ID: 12904.1194905908@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 Mon, Nov 12, 2007 at 11:26:09AM -0500, Tom Lane wrote:
>> 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?

> yes. i still hold my opinion: *int* like *text* is clear.

regression=# select '00123'::text like '0%';
?column?
----------
t
(1 row)

regression=# select '00123'::int4 like '0%';
?column?
----------
f
(1 row)

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2007-11-12 22:41:31 Re: update record with two-column primary key
Previous Message Tom Lane 2007-11-12 22:08:31 Re: (Never?) Kill Postmaster?