Revision 10987
Added by Aaron Marcuse-Kubitza over 11 years ago
schemas/util.sql | ||
---|---|---|
961 | 961 |
|
962 | 962 |
|
963 | 963 |
-- |
964 |
-- Name: esc_name__append(text, text); Type: FUNCTION; Schema: util; Owner: - |
|
965 |
-- |
|
966 |
|
|
967 |
CREATE FUNCTION esc_name__append(suffix text, esc_name text) RETURNS text |
|
968 |
LANGUAGE sql IMMUTABLE |
|
969 |
AS $_$ |
|
970 |
SELECT regexp_replace($2, '("?)$', $1||'\1') |
|
971 |
$_$; |
|
972 |
|
|
973 |
|
|
974 |
-- |
|
964 | 975 |
-- Name: eval(text); Type: FUNCTION; Schema: util; Owner: - |
965 | 976 |
-- |
966 | 977 |
|
Also available in: Unified diff
schemas/util.sql: added esc_name__append()