Re: interesting difference for queries...

Поиск
Список
Период
Сортировка
От Rod Taylor
Тема Re: interesting difference for queries...
Дата
Msg-id 1039024518.35854.66.camel@jester
обсуждение исходный текст
Ответ на Re: interesting difference for queries...  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Wed, 2002-12-04 at 12:22, Tom Lane wrote:
> Rod Taylor <rbt@rbt.ca> writes:
> >> cms=# CREATE TABLE foo(bar int);
> >> CREATE
> >> cms=# SELECT * from foo where bar=1.7;
>
> > This is a numeric to integer coercion, which rounds
>
> No, it's an integer to numeric promotion (the var is promoted, not the
> constant).  Obviously the '=' can never return true in this case.

Ahh, sorry. I see I changed the query slightly when doing the verbose
explain.

--
Rod Taylor <rbt@rbt.ca>

PGP Key: http://www.rbt.ca/rbtpub.asc

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

Предыдущее
От: Oliver Elphick
Дата:
Сообщение: Re: [ADMIN] how to alter sequence.
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [GENERAL] PostgreSQL Global Development Group Announces