Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.5.0b4

Bug #12922 alterDatabase not work
Submitted: 2008-01-17 13:54 UTC
From: afz Assigned: quipo
Status: Closed Package: MDB2_Driver_pgsql (version CVS)
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  


 [2008-01-17 13:54 UTC] afz (Ali Fazelzade)
Description: ------------ alterDatabase return error but if we user standaloneQuery like createDatabase and dropDatabase it work fine.

Comments

 [2008-01-17 13:55 UTC] afz (Ali Fazelzade)
Index: pgsql.php =================================================================== RCS file: /repository/pear/MDB2/MDB2/Driver/Manager/pgsql.php,v retrieving revision 1.76 diff -u -r1.76 pgsql.php --- pgsql.php 12 Jan 2008 13:31:48 -0000 1.76 +++ pgsql.php 18 Jan 2008 13:40:07 -0000 @@ -107,11 +107,7 @@ if (!empty($options['owner'])) { $query .= ' OWNER TO ' . $options['owner']; } - $result = $db->exec($query); - if (PEAR::isError($result)) { - return $result; - } - return MDB2_OK; + return $db->standaloneQuery($query, null, true); } // }}} @@ -817,4 +813,4 @@ return $result; } } -?> \ No newline at end of file +?>
 [2008-01-17 20:20 UTC] quipo (Lorenzo Alberton)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.