checking variadic "any" argument in parser - should be array
Pavel Stehule <pavel.stehule@gmail.com>
From: Pavel Stehule <pavel.stehule@gmail.com>
To: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2013-01-26T03:52:41Z
Lists: pgsql-hackers
Attachments
- variadic_any_parser_check.patch (application/octet-stream) patch
Hello Tom you did comment ! <----><------><------> * Non-null argument had better be an array. The parser doesn't ! <----><------><------> * enforce this for VARIADIC ANY functions (maybe it should?), so ! <----><------><------> * that check uses ereport not just elog. ! <----><------><------> */ So I moved this check to parser. It is little bit stricter - requests typed NULL instead unknown NULL, but it can mark error better and early Regards Pavel