Project

General

Profile

« Previous | Next » 

Revision 12363

bugfix: schemas/util.sql: rename_relation(): need quote_ident() around to_

View differences:

util.sql
2421 2421
    AS $_$
2422 2422
/* 'ALTER TABLE can be used with views too'
2423 2423
(http://www.postgresql.org/docs/9.3/static/sql-alterview.html) */
2424
SELECT util.eval($$ALTER TABLE IF EXISTS $$||$1||$$ RENAME TO $$||$2)
2424
SELECT util.eval($$ALTER TABLE IF EXISTS $$||$1||$$ RENAME TO $$
2425
||quote_ident($2))
2425 2426
$_$;
2426 2427

  
2427 2428

  

Also available in: Unified diff