找到文件:ThinkPHPLibraryThinkDbDriver.class.php
找到代码:
// PDO连接参数 protected $options = array( PDO::ATTR_CASE => PDO::CASE_LOWER, // 改为 PDO::CASE_NATURAL PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION, PDO::ATTR_ORACLE_NULLS => PDO::NULL_NATURAL, PDO::ATTR_STRINGIFY_FETCHES => false, );
把其中的 PDO::CASE_LOWER 改为 PDO::CASE_NATURAL
延伸阅读: