autoBegin = true by default
parent
47e5c1ed5f
commit
e4f1040f6e
|
@ -3,7 +3,7 @@
|
||||||
/**
|
/**
|
||||||
* PDO/PostgreSQL wrapper with (mostly) DatabaseMySQL interface :)
|
* PDO/PostgreSQL wrapper with (mostly) DatabaseMySQL interface :)
|
||||||
* Select builder is inspired by MediaWiki's one.
|
* Select builder is inspired by MediaWiki's one.
|
||||||
* Version: 2019-06-03
|
* Version: 2019-12-28
|
||||||
* (c) Vitaliy Filippov, 2015-2019
|
* (c) Vitaliy Filippov, 2015-2019
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -88,7 +88,7 @@ class DatabasePdoPgsql implements Database
|
||||||
'reconnect' => true,
|
'reconnect' => true,
|
||||||
'tableNames' => array(),
|
'tableNames' => array(),
|
||||||
'queryLogFile' => '',
|
'queryLogFile' => '',
|
||||||
'autoBegin' => false,
|
'autoBegin' => true,
|
||||||
'beginHook' => NULL,
|
'beginHook' => NULL,
|
||||||
'ondestroy' => 'commit',
|
'ondestroy' => 'commit',
|
||||||
'init' => array(),
|
'init' => array(),
|
||||||
|
@ -628,7 +628,7 @@ class DatabasePdoPgsql implements Database
|
||||||
return $sql;
|
return $sql;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function values($rows, $forInsert)
|
public function values($rows, $forInsert)
|
||||||
{
|
{
|
||||||
$key = reset($rows);
|
$key = reset($rows);
|
||||||
if (!is_array($key))
|
if (!is_array($key))
|
||||||
|
|
Loading…
Reference in New Issue