Re: Regression in 8.3?

Поиск
Список
Период
Сортировка
От hubert depesz lubaczewski
Тема Re: Regression in 8.3?
Дата
Msg-id 20071113052736.GB4042@depesz.com
обсуждение исходный текст
Ответ на Re: Regression in 8.3?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
On Mon, Nov 12, 2007 at 05:18:28PM -0500, Tom Lane wrote:
> regression=# select '00123'::text like '0%';
>  ?column?
> ----------
>  t
> (1 row)
> regression=# select '00123'::int4 like '0%';
>  ?column?
> ----------
>  f
> (1 row)

i think it's definitelly ok - '00123'::text is *not equal* to
'00123'::int4. so result of "like'ing" it is not necessarily the same.

what's more - in case patric showed - when he had int column there was
no "danger" of '00123'::int4.

best regards,

depesz

--
quicksil1er: "postgres is excellent, but like any DB it requires a
highly paid DBA.  here's my CV!" :)
http://www.depesz.com/ - blog dla ciebie (i moje CV)

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

Предыдущее
От: Greg Smith
Дата:
Сообщение: Re: PITR and warm standby setup questions
Следующее
От: "Merlin Moncure"
Дата:
Сообщение: Re: PITR and warm standby setup questions