Skip to content

Commit 38f9393

Browse files
authored
Merge pull request #1375 from UnionOfRAD/tiny-int-fix
Apply fix from #1346
2 parents 8030128 + 3665379 commit 38f9393

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

data/source/database/adapter/MySql.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ protected function _column($real) {
447447
switch (true) {
448448
case in_array($column['type'], ['date', 'time', 'datetime', 'timestamp']):
449449
return $column;
450-
case ($column['type'] === 'tinyint' && $column['length'] == '1'):
450+
case ($column['type'] === 'tinyint' && isset($column['length']) && $column['length'] == '1'):
451451
case ($column['type'] === 'boolean'):
452452
return ['type' => 'boolean'];
453453
break;

0 commit comments

Comments
 (0)