Project

General

Profile

« Previous | Next » 

Revision 10146

schemas/util.sql: try_create(), create_if_not_exists(): use eval() so the executed statement will be echoed for debugging

View differences:

schemas/util.sql
735 735
    LANGUAGE plpgsql STRICT
736 736
    AS $$
737 737
BEGIN
738
    EXECUTE sql;
738
    PERFORM util.eval(sql);
739 739
EXCEPTION
740 740
    WHEN duplicate_table  THEN NULL;
741 741
    WHEN duplicate_column THEN NULL;
......
1376 1376
    LANGUAGE plpgsql STRICT
1377 1377
    AS $$
1378 1378
BEGIN
1379
    EXECUTE sql;
1379
    PERFORM util.eval(sql);
1380 1380
EXCEPTION
1381 1381
    WHEN wrong_object_type THEN NULL; -- trying to alter a view's columns
1382 1382
    WHEN undefined_column THEN NULL;

Also available in: Unified diff