autoBegin = true by default
parent
47e5c1ed5f
commit
e4f1040f6e
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue