修正builder

This commit is contained in:
thinkphp
2016-04-17 09:32:07 +08:00
parent e82761c582
commit 57f855e01d

View File

@@ -84,13 +84,9 @@ abstract class Builder
} elseif (is_null($val)) {
$result[$item] = 'NULL';
} elseif (is_scalar($val)) {
if ($bindValue) {
// 过滤非标量数据
$this->query->bind($key, $val, isset($bind[$key]) ? $bind[$key] : PDO::PARAM_STR);
$result[$item] = ':' . $key;
} else {
$result[$item] = $this->parseValue($val);
}
// 过滤非标量数据
$this->query->bind($key, $val, isset($bind[$key]) ? $bind[$key] : PDO::PARAM_STR);
$result[$item] = ':' . $key;
}
}
}