Fix a bug in setComment where schema is append to db name
authorGuillaume (ioguix) de Rorthais <ioguix@free.fr>
Sun, 8 Feb 2009 07:34:44 +0000 (02:34 -0500)
committerGuillaume (ioguix) de Rorthais <ioguix@free.fr>
Sun, 8 Feb 2009 07:34:44 +0000 (02:34 -0500)
classes/database/Postgres.php

index bd24d87adbc4138da16153023e405361e7015b43..e0a0108e7525ee0384ec2cef8cb24760830f70f5 100755 (executable)
@@ -6815,17 +6815,17 @@ class Postgres extends ADODB_base {
                                break;
                        case 'SEQUENCE':
                        case 'VIEW':
+                       case 'TEXT SEARCH CONFIGURATION':
+                       case 'TEXT SEARCH DICTIONARY':
+                       case 'TEXT SEARCH TEMPLATE':
+                       case 'TEXT SEARCH PARSER':
                        case 'TYPE':
                                $sql .= "\"{$this->_schema}\".";
                        case 'DATABASE':
                        case 'ROLE':
                        case 'SCHEMA':
                        case 'TABLESPACE':
-                       case 'TEXT SEARCH CONFIGURATION':
-                       case 'TEXT SEARCH DICTIONARY':
-                       case 'TEXT SEARCH TEMPLATE':
-                       case 'TEXT SEARCH PARSER':
-                               $sql .= "\"{$this->_schema}\".\"{$obj_name}\" IS ";
+                               $sql .= "\"{$obj_name}\" IS ";
                                break;
                        case 'FUNCTION':
                                $sql .= "\"{$this->_schema}\".{$obj_name} IS ";