Revision 10116
Added by Aaron Marcuse-Kubitza over 11 years ago
schemas/util.sql | ||
---|---|---|
1003 | 1003 |
|
1004 | 1004 |
|
1005 | 1005 |
-- |
1006 |
-- Name: raise_undefined_column(col_ref); Type: FUNCTION; Schema: util; Owner: - |
|
1007 |
-- |
|
1008 |
|
|
1009 |
CREATE FUNCTION raise_undefined_column(col col_ref) RETURNS text |
|
1010 |
LANGUAGE plpgsql IMMUTABLE STRICT |
|
1011 |
AS $$ |
|
1012 |
BEGIN |
|
1013 |
RAISE undefined_column USING MESSAGE = concat('undefined column: ', col.name); |
|
1014 |
END; |
|
1015 |
$$; |
|
1016 |
|
|
1017 |
|
|
1018 |
-- |
|
1006 | 1019 |
-- Name: rename_cols(regclass, anyelement); Type: FUNCTION; Schema: util; Owner: - |
1007 | 1020 |
-- |
1008 | 1021 |
|
Also available in: Unified diff
schemas/util.sql: added raise_undefined_column() for use in translating other exceptions to undefined_column