改进sql日志的sql语句

This commit is contained in:
thinkphp
2016-11-26 23:14:34 +08:00
parent 3ff97b4b1e
commit 2f892770c2

View File

@@ -421,8 +421,8 @@ abstract class Connection
$type = is_array($val) ? $val[1] : PDO::PARAM_STR;
if (PDO::PARAM_STR == $type) {
$value = $this->quote($value);
} elseif (PDO::PARAM_INT == $type && '' === $value) {
$value = 0;
} elseif (PDO::PARAM_INT == $type) {
$value = (float) $value;
}
// 判断占位符
$sql = is_numeric($key) ?