diff --git a/library/think/db/Builder.php b/library/think/db/Builder.php index 3f9f989a..1024521c 100644 --- a/library/think/db/Builder.php +++ b/library/think/db/Builder.php @@ -369,7 +369,7 @@ abstract class Builder protected function parseDateTime($value, $key, $options = []) { // 获取时间字段类型 - $type = $this->query->getTableInfo('', 'type'); + $type = $this->query->getTableInfo($options['table'], 'type'); if (isset($options['field_type'][$key])) { $info = $options['field_type'][$key]; } elseif (isset($type[$key])) {