Revision 12531
Added by Aaron Marcuse-Kubitza almost 11 years ago
trunk/schemas/util.sql | ||
---|---|---|
1285 | 1285 |
|
1286 | 1286 |
|
1287 | 1287 |
-- |
1288 |
-- Name: eval(text); Type: FUNCTION; Schema: util; Owner: - |
|
1288 |
-- Name: eval(text, boolean); Type: FUNCTION; Schema: util; Owner: -
|
|
1289 | 1289 |
-- |
1290 | 1290 |
|
1291 |
CREATE FUNCTION eval(sql text) RETURNS void |
|
1291 |
CREATE FUNCTION eval(sql text, verbose_ boolean DEFAULT true) RETURNS void
|
|
1292 | 1292 |
LANGUAGE plpgsql STRICT |
1293 | 1293 |
AS $$ |
1294 | 1294 |
BEGIN |
1295 |
PERFORM util.debug_print_sql(sql);
|
|
1295 |
IF verbose_ THEN PERFORM util.debug_print_sql(sql); END IF;
|
|
1296 | 1296 |
EXECUTE sql; |
1297 | 1297 |
END; |
1298 | 1298 |
$$; |
Also available in: Unified diff
schemas/util.sql: eval(): added verbose_ option like for eval2set()