Project

General

Profile

« Previous | Next » 

Revision 14289

schemas/util.sql: added eval_raw()

View differences:

trunk/schemas/util.sql
2641 2641

  
2642 2642

  
2643 2643
--
2644
-- Name: eval_raw(text, boolean); Type: FUNCTION; Schema: util; Owner: -
2645
--
2646

  
2647
CREATE FUNCTION eval_raw(sql text, verbose_ boolean DEFAULT true) RETURNS void
2648
    LANGUAGE plpgsql
2649
    AS $$
2650
BEGIN
2651
	IF verbose_ THEN PERFORM util.debug_print_sql(sql); END IF;
2652
	EXECUTE sql;
2653
END;
2654
$$;
2655

  
2656

  
2657
--
2644 2658
-- Name: existing_cols(regclass, text[]); Type: FUNCTION; Schema: util; Owner: -
2645 2659
--
2646 2660

  

Also available in: Unified diff