Fix DB\AbstractStatement

#9
This commit is contained in:
Visman 2021-12-15 18:05:53 +07:00
parent 1077d2c6b6
commit b12b96ccd5

View file

@ -45,7 +45,10 @@ abstract class AbstractStatement extends DBStatement
$types = $this->getColumnsType();
foreach ($data as $key => &$value) {
if (isset($types[$key])) {
if (
isset($types[$key])
&& \is_scalar($value)
) {
switch ($types[$key]) {
case self::INTEGER:
$value += 0; // If the string is not a number, then Warning/Notice