@@ -99,7 +99,7 @@ |
||
| 99 | 99 | elseif(in_array(strtolower($val2), ['null', 'false', 'true', 'unknown'], true)){ |
| 100 | 100 | $where[] = strtoupper($val2); |
| 101 | 101 | } |
| 102 | - else { |
|
| 102 | + else{ |
|
| 103 | 103 | |
| 104 | 104 | if($bind){ |
| 105 | 105 | $where[] = '?'; |
@@ -119,7 +119,7 @@ |
||
| 119 | 119 | |
| 120 | 120 | // @todo: whitelist types? |
| 121 | 121 | $nolengthtypes = ['DATE', 'TINYBLOB', 'TINYTEXT', 'BLOB', 'TEXT', 'MEDIUMBLOB', |
| 122 | - 'MEDIUMTEXT', 'LONGBLOB', 'LONGTEXT', 'SERIAL', 'BOOLEAN', 'UUID']; |
|
| 122 | + 'MEDIUMTEXT', 'LONGBLOB', 'LONGTEXT', 'SERIAL', 'BOOLEAN', 'UUID']; |
|
| 123 | 123 | |
| 124 | 124 | $field[] = (is_int($length) || (is_string($length) && count(explode(',', $length)) === 2)) && !in_array($type, $nolengthtypes, true) |
| 125 | 125 | ? $type.'('. $length . ')' |