From e4f1040f6e46887a7393f598e9a7dfa342e4a282 Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Sat, 28 Dec 2019 02:36:11 +0300 Subject: [PATCH] autoBegin = true by default --- DatabasePdoPgsql.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/DatabasePdoPgsql.php b/DatabasePdoPgsql.php index 97b895c..5de80da 100644 --- a/DatabasePdoPgsql.php +++ b/DatabasePdoPgsql.php @@ -3,7 +3,7 @@ /** * PDO/PostgreSQL wrapper with (mostly) DatabaseMySQL interface :) * Select builder is inspired by MediaWiki's one. - * Version: 2019-06-03 + * Version: 2019-12-28 * (c) Vitaliy Filippov, 2015-2019 */ @@ -88,7 +88,7 @@ class DatabasePdoPgsql implements Database 'reconnect' => true, 'tableNames' => array(), 'queryLogFile' => '', - 'autoBegin' => false, + 'autoBegin' => true, 'beginHook' => NULL, 'ondestroy' => 'commit', 'init' => array(), @@ -628,7 +628,7 @@ class DatabasePdoPgsql implements Database return $sql; } - protected function values($rows, $forInsert) + public function values($rows, $forInsert) { $key = reset($rows); if (!is_array($key))