Update DB

Add 'f' type for float fields.
This commit is contained in:
Visman 2021-12-15 12:45:36 +07:00
parent 1800381095
commit 295c426df0
2 changed files with 2 additions and 0 deletions

View file

@ -151,6 +151,7 @@ class DB extends PDO
case 'i':
case 'b':
case 's':
case 'f':
$value = [1];
break;
default:

View file

@ -36,6 +36,7 @@ class DBStatement extends PDOStatement
's' => PDO::PARAM_STR,
'i' => PDO::PARAM_INT,
'b' => PDO::PARAM_BOOL,
'f' => PDO::PARAM_STR,
'a' => PDO::PARAM_STR,
'as' => PDO::PARAM_STR,
'ai' => PDO::PARAM_INT,