Re: [GENERAL] "EXECUTE command-string INTO target USING expression" isn't working

2012-04-18 Thread Bartosz Dmytrak
Hi, I have create small proof of concept (pg v. 9.1.3): 1. to map Your dynamic function: CREATE OR REPLACE FUNCTION public.testReturnDynamic(OUT "retValue" TEXT) RETURNS text AS $BODY$ BEGIN "retValue" = 'aaa'; END; $BODY$ LANGUAGE plpgsql SECURITY DEFINER; 2. to test function SELECT public.tes

[GENERAL] "EXECUTE command-string INTO target USING expression" isn't working

2012-04-18 Thread Ken Winter
I swear this used to work, but in PostgreSQL 9.1 it doesn't work any more... CASE 1: If I write it like this: FOR func IN ( SELECT * FROM information_schema.routines WHERE routine_schema = 'tests' ) LOOP q := 'SELECT tests.' || fun