Re: [HACKERS] Automatic type conversion

Поиск
Список
Период
Сортировка
От Thomas G. Lockhart
Тема Re: [HACKERS] Automatic type conversion
Дата
Msg-id 35279961.CF1532B9@alumni.caltech.edu
обсуждение исходный текст
Ответ на Automatic type conversion  ("Thomas G. Lockhart" <lockhart@alumni.caltech.edu>)
Список pgsql-hackers
> On to target type matching...

Ooh. This one was easy, apparently:

tgl=> create table test (s smallint);
CREATE

Old behavior:
tgl=> insert into test select 1 + 2;
ERROR:  parser: attribute 's' is of type 'int2' but expression is of
type 'int4'

New behavior:
tgl=> insert into test select 1 + 2;
INSERT 18432 1
tgl=> select * from test;
s
-
3
(1 row)

Back to fixing broken stuff in operators...

                     - Tom

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [PATCHES] Re: [HACKERS] Everything leaks; How it mm suppose to work?
Следующее
От: "Thomas G. Lockhart"
Дата:
Сообщение: Re: [HACKERS] On improving OO support in posgresql and relaxing oid bottleneck at the same time