Project

General

Profile

« Previous | Next » 

Revision 12514

schemas/util.sql: eval2val(): made it STABLE so that functions that use it can themselves be inlined. (Postgres apparently ignores the STABLE qualifier, without warning, if the function contains any VOLATILE statements.)

View differences:

util.sql
1354 1354
--
1355 1355

  
1356 1356
CREATE FUNCTION eval2val(sql text, ret_type_null anyelement DEFAULT NULL::text) RETURNS anyelement
1357
    LANGUAGE plpgsql
1357
    LANGUAGE plpgsql STABLE
1358 1358
    AS $$
1359 1359
DECLARE
1360 1360
	ret_val ret_type_null%TYPE;

Also available in: Unified diff