mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 23:22:48 +08:00
修正关联查询的时候 whereTime方法的bug
This commit is contained in:
@@ -397,7 +397,15 @@ abstract class Builder
|
|||||||
protected function parseDateTime($value, $key, $options = [], $bindName = null, $bindType = null)
|
protected function parseDateTime($value, $key, $options = [], $bindName = null, $bindType = null)
|
||||||
{
|
{
|
||||||
// 获取时间字段类型
|
// 获取时间字段类型
|
||||||
$type = $this->query->getFieldsType($options);
|
if (strpos($key, '.')) {
|
||||||
|
list($table, $key) = explode('.', $key);
|
||||||
|
if (isset($options['alias']) && $pos = array_search($table, $options['alias'])) {
|
||||||
|
$table = $pos;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
$table = $options['table'];
|
||||||
|
}
|
||||||
|
$type = $this->query->getTableInfo($table, 'type');
|
||||||
if (isset($type[$key])) {
|
if (isset($type[$key])) {
|
||||||
$info = $type[$key];
|
$info = $type[$key];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user