Re: arrays as pl/perl input arguments [PATCH]

David Wheeler <david@kineticode.com>

From: "David E. Wheeler" <david@kineticode.com>
To: Alvaro Herrera <alvherre@commandprompt.com>
Cc: Alex Hunsaker <badalex@gmail.com>, Alexey Klyukin <alexk@commandprompt.com>, Robert Haas <robertmhaas@gmail.com>, Andrew Dunstan <andrew@dunslane.net>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2011-01-12T19:55:17Z
Lists: pgsql-hackers
On Jan 12, 2011, at 11:51 AM, Alvaro Herrera wrote:

>> I suspect it'd be quiet, unfortunately, since there are a bazillion ad hoc implementations of a Perl SQL array parser, and many of them, I suspect, don't complain if the string doesn't look like an SQL array. They would just parse a string like "ARRAY(0x118ee2a0)" and return an empty array, or a NULL.
> 
> I kinda doubt that a function failing in that way would pass any
> testing.

What is this “testing” thing of which you speak?

David