Re: parse_expr.c:typecast_expression:return immediate on NULL input - Mailing list pgsql-patches

From Hannes Eder
Subject Re: parse_expr.c:typecast_expression:return immediate on NULL input
Date
Msg-id 005101c82df8$1de22b80$59a68280$@net
Whole thread Raw
In response to Re: parse_expr.c:typecast_expression:return immediate on NULL input  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-patches
Tom Lane <tgl@sss.pgh.pa.us> writes:
> Hannes Eder <Hannes@HannesEder.net> 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 by date:

Previous
From: "Marko Kreen"
Date:
Subject: Re: Cleaner API for appendStringInfoVA
Next
From: Tom Lane
Date:
Subject: Re: Cleaner API for appendStringInfoVA