* [refac] fix erro the strict mode doesn't work.

This commit is contained in:
liugang
2025-05-19 10:26:26 +08:00
committed by 刘刚
parent 41a966950b
commit c56ebd71ed
+1 -1
View File
@@ -85,7 +85,7 @@ class dbh
if($driver == 'mysql')
{
$pdo->exec("SET NAMES {$config->encoding}");
if(isset($this->config->strictMode) and $this->config->strictMode == false) $pdo->exec("SET @@sql_mode= ''");
if(isset($config->strictMode) and $config->strictMode == false) $pdo->exec("SET @@sql_mode= ''");
}
else if($setSchema)
{