fix pl/pgsql %type bug

Started by Neil Conwayover 23 years ago2 messagespatches
Jump to latest
#1Neil Conway
neilc@samurai.com

This patch fixes a bug with the new-in-7.3 support for schema-qualified
names for %TYPE variables in PL/PgSQL: the function that parses them
never calls plgsql_convert_ident(), so it will not work for any
identifier name that has double-quotes or mixed-case letters.

Unless anyone sees a problem, please apply this patch to both
REL7_3_STABLE and HEAD.

Cheers,

Neil
--
Neil Conway <neilc@samurai.com> || PGP Key ID: DB3C29FC

Attachments:

plpgsql-ident-type-1.patchtext/x-patch; charset=ANSI_X3.4-1968; name=plpgsql-ident-type-1.patchDownload+10-9
#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Neil Conway (#1)
Re: fix pl/pgsql %type bug

Neil Conway <neilc@samurai.com> writes:

This patch fixes a bug with the new-in-7.3 support for schema-qualified
names for %TYPE variables in PL/PgSQL: the function that parses them
never calls plgsql_convert_ident(), so it will not work for any
identifier name that has double-quotes or mixed-case letters.

Patch applied, thanks!

regards, tom lane