From f8d08dd5a9d8773eff01add50a564d85c9b20314 Mon Sep 17 00:00:00 2001 From: dingguodong Date: Tue, 25 Apr 2023 13:07:04 +0800 Subject: [PATCH] * Turn on the strict mode od MySQL. --- config/config.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/config.php b/config/config.php index 4095dbba33..aec4c336dc 100644 --- a/config/config.php +++ b/config/config.php @@ -64,12 +64,12 @@ $config->slaveDB = new stdclass(); $config->db->persistant = false; // 是否为持续连接。 Pconnect or not. $config->db->driver = 'mysql'; // 目前只支持MySQL数据库。Must be MySQL. Don't support other database server yet. $config->db->encoding = 'UTF8'; // 数据库编码。 Encoding of database. -$config->db->strictMode = false; // 关闭MySQL的严格模式。 Turn off the strict mode of MySQL. +$config->db->strictMode = true; // 默认开启MySQL的严格模式。 Turn on the strict mode of MySQL. $config->db->prefix = 'zt_'; // 数据库表名前缀。 The prefix of the table name. $config->slaveDB->persistant = false; $config->slaveDB->driver = 'mysql'; $config->slaveDB->encoding = 'UTF8'; -$config->slaveDB->strictMode = false; +$config->slaveDB->strictMode = true; /* 可用域名后缀列表。Domain postfix lists. */ $config->domainPostfix = "|com|com.cn|com.hk|com.tw|com.vc|edu.cn|es|";