mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-11 20:21:16 +00:00
add example on how to activate strict sql mode for mysql
This commit is contained in:
parent
2a5441e7bd
commit
e01ec020ab
|
@ -179,6 +179,8 @@ class SeedDMS_Core_DatabaseAccess {
|
|||
switch($this->_driver) {
|
||||
case 'mysql':
|
||||
$this->_conn->exec('SET NAMES utf8');
|
||||
/* Turn this on if you want strict checking of default values, etc. */
|
||||
// $this->_conn->exec("SET SESSION sql_mode = 'STRICT_TRANS_TABLES'");
|
||||
break;
|
||||
case 'sqlite':
|
||||
$this->_conn->exec('PRAGMA foreign_keys = ON');
|
||||
|
|
Loading…
Reference in New Issue
Block a user