From: Mark A. Hershberger Date: Tue, 11 Oct 2011 21:54:10 +0000 (+0000) Subject: Remove hardcoded commit statements for pg installer. X-Git-Tag: 1.31.0-rc.0~27134 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/%7B%7B%20url_for%28%27admin_users%27%29%20%7D%7D?a=commitdiff_plain;h=a67094c6c1fe7648b89eb37015c6a2e6631771fb;p=lhc%2Fweb%2Fwiklou.git Remove hardcoded commit statements for pg installer. --- diff --git a/includes/installer/PostgresInstaller.php b/includes/installer/PostgresInstaller.php index 74688e1f3e..97f8efbec2 100644 --- a/includes/installer/PostgresInstaller.php +++ b/includes/installer/PostgresInstaller.php @@ -463,7 +463,7 @@ class PostgresInstaller extends DatabaseInstaller { } function commitChanges() { - $this->db->query( 'COMMIT' ); + $this->db->commit(); return Status::newGood(); } diff --git a/includes/installer/PostgresUpdater.php b/includes/installer/PostgresUpdater.php index 2c9c05958c..8c4af49425 100644 --- a/includes/installer/PostgresUpdater.php +++ b/includes/installer/PostgresUpdater.php @@ -431,8 +431,9 @@ END; } $sql .= " USING $default"; } - $sql .= ";\nCOMMIT;\n"; + $this->db->begin( __METHOD__ ); $this->db->query( $sql ); + $this->db->commit( __METHOD__ ); } }