Project

General

Profile

« Previous | Next » 

Revision 12686

bugfix: drop_column(regclass[]): need to run `SELECT NULL::void;` at end of function to avoid folding away functions called in previous query

View differences:

trunk/schemas/util.sql
1249 1249
CREATE FUNCTION drop_column(tables regclass[], col text, force boolean DEFAULT false) RETURNS void
1250 1250
    LANGUAGE sql
1251 1251
    AS $_$
1252
SELECT util.drop_column((table_, $2), $3) FROM unnest($1) table_
1252
SELECT util.drop_column((table_, $2), $3) FROM unnest($1) table_;
1253
SELECT NULL::void; -- don't fold away functions called in previous query
1253 1254
$_$;
1254 1255

  
1255 1256

  

Also available in: Unified diff