Use quote_identifier() to properly escape column names in UPDATE statement, per report from Dimitrije Radojevic.
This commit is contained in:
parent
612495ecd6
commit
bc20ace32b
@ -80,7 +80,7 @@ LANGUAGE sql STABLE STRICT;
|
||||
|
||||
CREATE FUNCTION reorg.get_assign(oid, text) RETURNS text AS
|
||||
$$
|
||||
SELECT '(' || array_to_string(reorg.array_accum(attname), ', ') ||
|
||||
SELECT '(' || array_to_string(reorg.array_accum(quote_ident(attname)), ', ') ||
|
||||
') = (' || $2 || '.' ||
|
||||
array_to_string(reorg.array_accum(quote_ident(attname)), ', ' || $2 || '.') || ')'
|
||||
FROM (SELECT attname FROM pg_attribute
|
||||
|
Loading…
x
Reference in New Issue
Block a user