diff --git a/library/think/db/Query.php b/library/think/db/Query.php index 2f37c000..7bc75c3d 100644 --- a/library/think/db/Query.php +++ b/library/think/db/Query.php @@ -1556,7 +1556,7 @@ class Query */ protected function getFieldBindType($type) { - if (preg_match('/(int|double|float|decimal|real|numeric|serial)/is', $type)) { + if (preg_match('/(int|double|float|decimal|real|numeric|serial|bit)/is', $type)) { $bind = PDO::PARAM_INT; } elseif (preg_match('/bool/is', $type)) { $bind = PDO::PARAM_BOOL;