do not set PDO::ATTR_AUTOCOMMIT because it prevents sql statements not in a transaction from being executed

This commit is contained in:
Uwe Steinmann 2023-01-06 07:48:32 +01:00
parent 67163324bb
commit adbea2919a

View File

@ -301,7 +301,7 @@ class SeedDMS_Core_DatabaseAccess {
switch($this->_driver) {
case 'mysql':
$this->_conn->exec('SET NAMES utf8');
$this->_conn->setAttribute(PDO::ATTR_AUTOCOMMIT, FALSE);
// $this->_conn->setAttribute(PDO::ATTR_AUTOCOMMIT, FALSE);
/* Turn this on if you want strict checking of default values, etc. */
/* $this->_conn->exec("SET SESSION sql_mode = 'STRICT_TRANS_TABLES'"); */
/* The following is the default on Ubuntu 16.04 */