allow empty comment on database to remove it if needed.
authorGuillaume (ioguix) de Rorthais <ioguix@free.fr>
Thu, 29 Oct 2009 16:46:43 +0000 (17:46 +0100)
committerGuillaume (ioguix) de Rorthais <ioguix@free.fr>
Thu, 29 Oct 2009 16:46:43 +0000 (17:46 +0100)
classes/database/Postgres.php

index b9e4e704d7102a7529b506ddc60b31984d5ef1c2..ded8bfca6d568dbdfeb5060ee87526e84ec2ea72 100755 (executable)
@@ -664,12 +664,10 @@ class Postgres extends ADODB_base {
                        }
                }
 
-               if (trim($comment) != '' ) {
-                       $status = $this->setComment('DATABASE', $dbName, '', $comment);
-                       if ($status != 0) {
-                               $this->rollbackTransaction();
-                               return -4;
-                       }
+               $status = $this->setComment('DATABASE', $dbName, '', $comment);
+               if ($status != 0) {
+                       $this->rollbackTransaction();
+                       return -4;
                }
                return $this->endTransaction();
        }