Revision 14290
Added by Aaron Marcuse-Kubitza over 10 years ago
util.sql | ||
---|---|---|
2512 | 2512 |
-- |
2513 | 2513 |
|
2514 | 2514 |
CREATE FUNCTION eval(sql text, verbose_ boolean DEFAULT true) RETURNS void |
2515 |
LANGUAGE plpgsql
|
|
2515 |
LANGUAGE sql |
|
2516 | 2516 |
AS $$ |
2517 |
BEGIN |
|
2518 |
sql = util.view_def_to_orig(sql); -- restore user's intent |
|
2519 |
IF verbose_ THEN PERFORM util.debug_print_sql(sql); END IF; |
|
2520 |
EXECUTE sql; |
|
2521 |
END; |
|
2517 |
SELECT util.eval_raw(util.view_def_to_orig(sql)/*restore user's intent*/, |
|
2518 |
verbose_) |
|
2522 | 2519 |
$$; |
2523 | 2520 |
|
2524 | 2521 |
|
Also available in: Unified diff
schemas/util.sql: eval(): use new eval_raw()