Revision 14170
Added by Aaron Marcuse-Kubitza over 10 years ago
trunk/schemas/util.sql | ||
---|---|---|
3685 | 3685 |
|
3686 | 3686 |
|
3687 | 3687 |
-- |
3688 |
-- Name: quote_as_str(anyelement); Type: FUNCTION; Schema: util; Owner: - |
|
3689 |
-- |
|
3690 |
|
|
3691 |
CREATE FUNCTION quote_as_str(value anyelement) RETURNS text |
|
3692 |
LANGUAGE sql IMMUTABLE |
|
3693 |
AS $$ |
|
3694 |
SELECT quote_nullable(COALESCE(value::text, '<NULL>')) |
|
3695 |
$$; |
|
3696 |
|
|
3697 |
|
|
3698 |
-- |
|
3688 | 3699 |
-- Name: quote_func_call(regprocedure, text[]); Type: FUNCTION; Schema: util; Owner: - |
3689 | 3700 |
-- |
3690 | 3701 |
|
Also available in: Unified diff
schemas/util.sql: added quote_as_str()