Project

General

Profile

« Previous | Next » 

Revision 14170

schemas/util.sql: added quote_as_str()

View differences:

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