Remove hardcoded commit statements for pg installer.
authorMark A. Hershberger <mah@users.mediawiki.org>
Tue, 11 Oct 2011 21:54:10 +0000 (21:54 +0000)
committerMark A. Hershberger <mah@users.mediawiki.org>
Tue, 11 Oct 2011 21:54:10 +0000 (21:54 +0000)
includes/installer/PostgresInstaller.php
includes/installer/PostgresUpdater.php

index 74688e1..97f8efb 100644 (file)
@@ -463,7 +463,7 @@ class PostgresInstaller extends DatabaseInstaller {
        }
 
        function commitChanges() {
-               $this->db->query( 'COMMIT' );
+               $this->db->commit();
                return Status::newGood();
        }
 
index 2c9c059..8c4af49 100644 (file)
@@ -431,8 +431,9 @@ END;
                                }
                                $sql .= " USING $default";
                        }
-                       $sql .= ";\nCOMMIT;\n";
+                       $this->db->begin( __METHOD__ );
                        $this->db->query( $sql );
+                       $this->db->commit( __METHOD__ );
                }
        }