Browse Source

SQLsever配置文件

unknown 4 months ago
parent
commit
ca27b1fdae
1 changed files with 4 additions and 1 deletions
  1. 4 1
      thinkphp/library/think/db/builder/Sqlsrv.php

+ 4 - 1
thinkphp/library/think/db/builder/Sqlsrv.php

@@ -95,7 +95,10 @@ class Sqlsrv extends Builder
             }
         }
 
-        if ($strict && !preg_match('/^[\w\.\*]+$/', $key)) {
+//         if ($strict && !preg_match('/^[\w\.\*]+$/', $key)) {
+//             throw new Exception('not support data:' . $key);
+//         }
+        if ($strict && !preg_match('/^[\w\.\*\x00-\xff]+$/', $key)) {
             throw new Exception('not support data:' . $key);
         }
         if ('*' != $key && ($strict || !preg_match('/[,\'\"\*\(\)\[.\s]/', $key))) {