Pull-request: #16643 Fixes: #16641 Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
commit
c1e2f387e1
@ -534,7 +534,7 @@ class Table
|
||||
// MySQL permits a non-standard syntax for FLOAT and DOUBLE,
|
||||
// see https://dev.mysql.com/doc/refman/5.5/en/floating-point-types.html
|
||||
$pattern = '@^(DATE|TINYBLOB|TINYTEXT|BLOB|TEXT|'
|
||||
. 'MEDIUMBLOB|MEDIUMTEXT|LONGBLOB|LONGTEXT|SERIAL|BOOLEAN|UUID)$@i';
|
||||
. 'MEDIUMBLOB|MEDIUMTEXT|LONGBLOB|LONGTEXT|SERIAL|BOOLEAN|UUID|JSON)$@i';
|
||||
if (strlen($length) !== 0 && ! preg_match($pattern, $type)) {
|
||||
// Note: The variable $length here can contain several other things
|
||||
// besides length - ENUM/SET value or length of DECIMAL (eg. 12,3)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user