turn off auto commit for mysql

This commit is contained in:
Uwe Steinmann 2023-01-01 09:21:01 +01:00
parent 8940a3b338
commit c67cc6ede4
2 changed files with 2 additions and 0 deletions

View File

@ -301,6 +301,7 @@ class SeedDMS_Core_DatabaseAccess {
switch($this->_driver) {
case 'mysql':
$this->_conn->exec('SET NAMES utf8');
$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 */

View File

@ -26,6 +26,7 @@
<notes>
- SeedDMS_Core_Folder::addDocument() does rollback transaction propperly when setting document categories fail
- add $skiproot and $sep parameter to SeedDMS_Core_Folder::getFolderPathPlain()
- turn off auto commit for mysql
</notes>
<contents>
<dir baseinstalldir="SeedDMS" name="/">