X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fdb%2FDatabasePostgres.php;h=1ecdd26088bdceab510815849d640792d4fdd9f9;hp=c9127ff599a3061f2ce3ffe578cfada30395a966;hb=98585221d685e7cfcb5a3bb0d766c6cd431f2b05;hpb=fe922d470fbddff5617448e0d90df3e18c04644e diff --git a/includes/db/DatabasePostgres.php b/includes/db/DatabasePostgres.php index c9127ff599..1ecdd26088 100644 --- a/includes/db/DatabasePostgres.php +++ b/includes/db/DatabasePostgres.php @@ -149,7 +149,7 @@ class SavepointPostgres { $this->didbegin = false; /* If we are not in a transaction, we need to be for savepoint trickery */ if ( !$dbw->trxLevel() ) { - $dbw->begin( "FOR SAVEPOINT" ); + $dbw->begin( "FOR SAVEPOINT", DatabasePostgres::TRANSACTION_INTERNAL ); $this->didbegin = true; } } @@ -888,7 +888,7 @@ __INDEXATTR__; /** * INSERT SELECT wrapper - * $varMap must be an associative array of the form array( 'dest1' => 'source1', ...) + * $varMap must be an associative array of the form [ 'dest1' => 'source1', ... ] * Source items may be literals rather then field names, but strings should * be quoted with Database::addQuotes() * $conds may be "*" to copy the whole table @@ -1207,7 +1207,7 @@ __INDEXATTR__; * @param string $desiredSchema */ function determineCoreSchema( $desiredSchema ) { - $this->begin( __METHOD__ ); + $this->begin( __METHOD__, self::TRANSACTION_INTERNAL ); if ( $this->schemaExists( $desiredSchema ) ) { if ( in_array( $desiredSchema, $this->getSchemas() ) ) { $this->mCoreSchema = $desiredSchema;