You've already forked phpmyadmin
mirror of
https://github.com/phpmyadmin/phpmyadmin.git
synced 2026-10-29 21:24:44 +03:00
Allow to specify length of 0
Issue #12480 Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
@@ -399,7 +399,7 @@ class Table
|
||||
//
|
||||
$pattern = '@^(DATE|TINYBLOB|TINYTEXT|BLOB|TEXT|'
|
||||
. 'MEDIUMBLOB|MEDIUMTEXT|LONGBLOB|LONGTEXT|SERIAL|BOOLEAN|UUID)$@i';
|
||||
if ($length != '' && ! preg_match($pattern, $type)) {
|
||||
if (strlen($length) !== 0 && ! preg_match($pattern, $type)) {
|
||||
$query .= '(' . intval($length) . ')';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user