unknown 4 сар өмнө
parent
commit
ca27b1fdae

+ 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))) {