@@ -23,10 +23,10 @@ |
||
23 | 23 | * |
24 | 24 | * @return \chillerlan\Database\Query\SelectInterface |
25 | 25 | public function from(array $expressions):SelectInterface{ |
26 | - * // @todo: index hint |
|
27 | - * |
|
26 | + * // @todo: index hint |
|
27 | + * |
|
28 | 28 | * return $this; |
29 | - * } |
|
29 | + * } |
|
30 | 30 | */ |
31 | 31 | |
32 | 32 |
@@ -53,7 +53,7 @@ |
||
53 | 53 | |
54 | 54 | $type = strtoupper(trim($type)); |
55 | 55 | $nolengthtypes = ['DATE', 'TINYBLOB', 'TINYTEXT', 'BLOB', 'TEXT', 'MEDIUMBLOB', |
56 | - 'MEDIUMTEXT', 'LONGBLOB', 'LONGTEXT', 'SERIAL', 'BOOLEAN', 'UUID']; |
|
56 | + 'MEDIUMTEXT', 'LONGBLOB', 'LONGTEXT', 'SERIAL', 'BOOLEAN', 'UUID']; |
|
57 | 57 | |
58 | 58 | $field[] = (is_int($length) || is_string($length) && count(explode(',', $length)) === 2) && !in_array($type, $nolengthtypes) |
59 | 59 | ? $type.'('. $length . ')' |