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 Robert Haas <robertmhaas@gmail.com>
Re: [PERFORM] typoed column name, but postgres didn't grump Tom Lane <tgl@sss.pgh.pa.us>
Re: [PERFORM] typoed column name, but postgres didn't grump Robert Haas <robertmhaas@gmail.com>
Merlin Moncure  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
Дата:
От: Tom Lane
Дата:
FAQ