cast in php and skip quoting
This commit is contained in:
parent
e5c65cce1a
commit
04f529d7db
|
@ -569,14 +569,13 @@ class MySQL extends Adapter
|
|||
|
||||
//$path = implode('.', $path);
|
||||
|
||||
$castToInt = array_key_exists($key, $filterTypes) && $filterTypes[$key] === 'numeric';
|
||||
if(array_key_exists($key, $filterTypes) && $filterTypes[$key] === 'numeric') {
|
||||
$value = (float) $value;
|
||||
} else {
|
||||
$value = $this->getPDO()->quote($value, PDO::PARAM_STR);
|
||||
}
|
||||
|
||||
$key = $this->getPDO()->quote($key, PDO::PARAM_STR);
|
||||
$value = $this->getPDO()->quote($value, PDO::PARAM_STR);
|
||||
|
||||
if ($castToInt) {
|
||||
$value .= '+0';
|
||||
}
|
||||
|
||||
//$path = $this->getPDO()->quote($path, PDO::PARAM_STR);
|
||||
$options['offset'] = (int) $options['offset'];
|
||||
|
|
Loading…
Reference in a new issue