Revision 10129
Added by Aaron Marcuse-Kubitza over 11 years ago
schemas/util.sql | ||
---|---|---|
729 | 729 |
|
730 | 730 |
|
731 | 731 |
-- |
732 |
-- Name: eval(text, anyelement); Type: FUNCTION; Schema: util; Owner: - |
|
732 |
-- Name: eval2val(text, anyelement); Type: FUNCTION; Schema: util; Owner: -
|
|
733 | 733 |
-- |
734 | 734 |
|
735 |
CREATE FUNCTION eval(sql text, ret_type_null anyelement) RETURNS anyelement
|
|
735 |
CREATE FUNCTION eval2val(sql text, ret_type_null anyelement DEFAULT NULL::text) RETURNS anyelement
|
|
736 | 736 |
LANGUAGE plpgsql |
737 | 737 |
AS $$ |
738 | 738 |
DECLARE |
... | ... | |
746 | 746 |
|
747 | 747 |
|
748 | 748 |
-- |
749 |
-- Name: FUNCTION eval(sql text, ret_type_null anyelement); Type: COMMENT; Schema: util; Owner: - |
|
749 |
-- Name: FUNCTION eval2val(sql text, ret_type_null anyelement); Type: COMMENT; Schema: util; Owner: -
|
|
750 | 750 |
-- |
751 | 751 |
|
752 |
COMMENT ON FUNCTION eval(sql text, ret_type_null anyelement) IS 'ret_type_null: NULL::ret_type'; |
|
752 |
COMMENT ON FUNCTION eval2val(sql text, ret_type_null anyelement) IS 'ret_type_null: NULL::ret_type';
|
|
753 | 753 |
|
754 | 754 |
|
755 | 755 |
-- |
Also available in: Unified diff
schemas/util.sql: eval(text, anyelement): added default polymorphic type text (can't be unknown because this would cause a "could not determine polymorphic type because input has type "unknown"" error). renamed to eval2val() to avoid overloading conflicts with eval(text) when no polymorphic type param is specified.