mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
改进sql日志的sql语句
This commit is contained in:
@@ -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) ?
|
||||
|
||||
Reference in New Issue
Block a user