Re: parse_expr.c:typecast_expression:return immediate on NULL input

Поиск
Список
Период
Сортировка
Искать
От
Hannes Eder
Тема
Re: parse_expr.c:typecast_expression:return immediate on NULL input
Дата
Msg-id
005101c82df8$1de22b80$59a68280$@net
Ответ на
Список
Дерево обсуждения
parse_expr.c:typecast_expression:return immediate on NULL input Hannes Eder <Hannes@HannesEder.net>
Re: parse_expr.c:typecast_expression:return immediate on NULL input Tom Lane <tgl@sss.pgh.pa.us>
Re: parse_expr.c:typecast_expression:return immediate on NULL input "Hannes Eder" <Hannes@HannesEder.net>
Tom Lane  writes:
> Hannes Eder  writes:
> > in parse_expr.c:typecast_expression: return immediate on NULL
> input, i.e. do not lookup target type Oid as it is not required.
> 
> I think the existing ordering is intentional, to detect and error
> out if the given typename is bogus.

Ups, yes, you are right. typecast_expression calls typenameTypeId and
this calls typenameType, which will ereport an error if the typename
cannot be found.

-Hannes

В списке pgsql-patches по дате отправления
От: Marko Kreen
Дата:
От: Tom Lane
Дата:
FAQ