Browse Source

Update DB

Add 'f' type for float fields.
Visman 3 years ago
parent
commit
295c426df0
2 changed files with 2 additions and 0 deletions
  1. 1 0
      app/Core/DB.php
  2. 1 0
      app/Core/DBStatement.php

+ 1 - 0
app/Core/DB.php

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

+ 1 - 0
app/Core/DBStatement.php

@@ -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,