Project

General

Profile

« Previous | Next » 

Revision 12579

bugfix: schemas/util.sql: uses of util.col_cast.col_name: need to wrap in quote_ident()

View differences:

trunk/schemas/util.sql
2107 2107
  RETURNS $$||util.prefixed_name($3||'_', $1)||$$ AS
2108 2108
$BODY1$
2109 2109
SELECT ROW($$||
2110
(SELECT COALESCE(string_agg($$$1.$$||(unnest).col_name, ', '), '')
2110
(SELECT COALESCE(string_agg($$$1.$$||quote_ident((unnest).col_name), ', '), '')
2111 2111
FROM unnest($2)) ||$$)::$$||util.prefixed_name($3||'_', $1)||$$
2112 2112
$BODY1$
2113 2113
  LANGUAGE sql IMMUTABLE
......
2338 2338
CREATE FUNCTION mk_typed_cols_list(cols col_cast[]) RETURNS text
2339 2339
    LANGUAGE sql IMMUTABLE
2340 2340
    AS $_$
2341
SELECT COALESCE(string_agg((unnest).col_name||$$ $$||
2341
SELECT COALESCE(string_agg(quote_ident((unnest).col_name)||$$ $$||
2342 2342
util.qual_name((unnest).type), ', '), '')
2343 2343
FROM unnest($1)
2344 2344
$_$;

Also available in: Unified diff