改进Builder类的parseData方法

This commit is contained in:
thinkphp
2017-08-30 14:14:43 +08:00
parent 8aacceac69
commit e05d6aecd6

View File

@@ -118,8 +118,8 @@ abstract class Builder
$result[$item] = $val;
} else {
$key = str_replace('.', '_', $key);
$this->query->bind('__data__' . $key, $val, isset($bind[$key]) ? $bind[$key] : PDO::PARAM_STR);
$result[$item] = ':__data__' . $key;
$this->query->bind('data__' . $key, $val, isset($bind[$key]) ? $bind[$key] : PDO::PARAM_STR);
$result[$item] = ':data__' . $key;
}
}
}