mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-11 16:35:38 +00:00
do not set PDO::ATTR_AUTOCOMMIT because it prevents sql statements not in a transaction from being executed
This commit is contained in:
parent
67163324bb
commit
adbea2919a
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue
Block a user