Re: what exactly is a query structure?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: what exactly is a query structure?
Дата
Msg-id 27166.1267197116@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: what exactly is a query structure?  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
Список pgsql-sql
"A. Kretschmer" <andreas.kretschmer@schollglas.com> writes:
> In response to silly sad :
>> my own wild guess:
>> string constant '*' is of type "unknown"

> Maybe. Add a explicit cast, for instance '*'::text

Definitely.  More recent versions of PG provide a more explicit error
message:

regression=# SELECT * from get_noobs();
ERROR:  structure of query does not match function result type
DETAIL:  Returned type unknown does not match expected type text in column "pass".
CONTEXT:  PL/pgSQL function "get_noobs" line 2 at RETURN QUERY
        regards, tom lane


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

Предыдущее
От: "A. Kretschmer"
Дата:
Сообщение: Re: what exactly is a query structure?
Следующее
От: Petru Ghita
Дата:
Сообщение: Date comparison, user defined operators and magic