Re: [PERFORM] typoed column name, but postgres didn't grump

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: [PERFORM] typoed column name, but postgres didn't grump
Дата
Msg-id 4CD28C5C020000250003727B@gw.wicourts.gov
обсуждение исходный текст
Ответ на Re: [PERFORM] typoed column name, but postgres didn't grump  (Merlin Moncure <mmoncure@gmail.com>)
Ответы Re: [PERFORM] typoed column name, but postgres didn't grump  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
Merlin Moncure <mmoncure@gmail.com> wrote:

> Trying to understand real world cases that this would
> break...would the following now fail w/o explicit cast?
>
> create type x as (a int, b int);
> select f((1,2));

It already does:

test=# create type x as (a int, b int);
CREATE TYPE
test=# select f((1,2));
ERROR:  function f(record) does not exist
LINE 1: select f((1,2));
               ^
HINT:  No function matches the given name and argument types. You
might need to add explicit type casts.

-Kevin

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

Предыдущее
От: Merlin Moncure
Дата:
Сообщение: Re: [PERFORM] typoed column name, but postgres didn't grump
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [PERFORM] typoed column name, but postgres didn't grump