Project

General

Profile

« Previous | Next » 

Revision 14247

schemas/util.sql: added quote_typed(derived_col_def)

View differences:

trunk/schemas/util.sql
4193 4193

  
4194 4194

  
4195 4195
--
4196
-- Name: quote_typed(derived_col_def); Type: FUNCTION; Schema: util; Owner: -
4197
--
4198

  
4199
CREATE FUNCTION quote_typed(def derived_col_def) RETURNS text
4200
    LANGUAGE sql IMMUTABLE
4201
    AS $_$
4202
SELECT $$($$||util.quote_typed(def.col)||$$, $$||'$$'||def.expr||'$$'||$$)::$$||util.qual_name(pg_typeof($1))
4203
$_$;
4204

  
4205

  
4206
--
4196 4207
-- Name: quote_typed(anyelement); Type: FUNCTION; Schema: util; Owner: -
4197 4208
--
4198 4209

  

Also available in: Unified diff