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,

Thank you, Adrian. I've accepted the following answer on StackExchange: 
http://dba.stackexchange.com/a/61304/3935

It's your solution, but with the extra call to format, preventing SQL injection 
attacks.

Thanks!
François

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to