Le 2014-03-19 à 19:48, Adrian Klaver a écrit :
On 03/19/2014 02:01 PM, François Beausoleil wrote:
Some experimenting showed that NEW.* does not work. So plan B:
EXECUTE 'SELECT $1.' || TG_ARGV[0] || INTO total USING NEW;
RAISE EXCEPTION 'Total: %, social_impressions: %', total,
It's your solution, but with the extra call to format, preventing SQL injection attacks.
Thanks!
François