1
0
Fork 0
mirror of synced 2024-06-02 02:44:47 +12:00

cast in php and skip quoting

This commit is contained in:
Torsten Dittmann 2021-07-06 09:01:12 +02:00
parent e5c65cce1a
commit 04f529d7db

View file

@ -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'];