From 2ddec1f4ac9c7a24867bd65a125060e2d2c50ffa Mon Sep 17 00:00:00 2001 From: stronk7 Date: Tue, 3 Oct 2006 15:00:55 +0000 Subject: [PATCH] Changed PG rename_index() to use the old ALTER TABLE ... RENAME TO syntax (pretty strange syntax, but seems to work) --- lib/xmldb/classes/generators/postgres7/postgres7.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/xmldb/classes/generators/postgres7/postgres7.class.php b/lib/xmldb/classes/generators/postgres7/postgres7.class.php index 2246750cae..e24e7c48f1 100644 --- a/lib/xmldb/classes/generators/postgres7/postgres7.class.php +++ b/lib/xmldb/classes/generators/postgres7/postgres7.class.php @@ -47,6 +47,9 @@ class XMLDBpostgres7 extends XMLDBgenerator { var $enum_inline_code = false; //Does the generator need to add inline code in the column definition + var $rename_index_sql = 'ALTER TABLE OLDINDEXNAME RENAME TO NEWINDEXNAME'; //SQL sentence to rename one index + //TABLENAME, OLDINDEXNAME, NEWINDEXNAME are dinamically replaced + var $rename_key_sql = null; //SQL sentence to rename one key (PostgreSQL doesn't support this!) //TABLENAME, OLDKEYNAME, NEWKEYNAME are dinamically replaced -- 2.39.5