diff --git a/library/think/db/Query.php b/library/think/db/Query.php index 42b1c120..75086bc6 100644 --- a/library/think/db/Query.php +++ b/library/think/db/Query.php @@ -569,7 +569,7 @@ class Query list($distinct, $field) = explode(' ', $field); } - if (!preg_match('/^[\w\.\*]+$/', $field)) { + if (!preg_match('/^[\w\.\+\-\*]+$/', $field)) { throw new Exception('not support data:' . $field); }