autoBegin = true by default

master
Vitaliy Filippov 2019-12-28 02:36:11 +03:00
parent 47e5c1ed5f
commit e4f1040f6e
1 changed files with 3 additions and 3 deletions

View File

@ -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))