You've already forked phpmyadmin
mirror of
https://github.com/phpmyadmin/phpmyadmin.git
synced 2026-10-31 10:54:46 +03:00
SERIAL and BOOLEAN types have no length.
This commit is contained in:
@@ -681,7 +681,7 @@ function PMA_RTN_getQueryFromRequest()
|
||||
htmlspecialchars($_REQUEST['item_param_dir'][$i]));
|
||||
}
|
||||
if ($_REQUEST['item_param_length'][$i] != ''
|
||||
&& !preg_match('@^(DATE|DATETIME|TIME|TINYBLOB|TINYTEXT|BLOB|TEXT|MEDIUMBLOB|MEDIUMTEXT|LONGBLOB|LONGTEXT)$@i',
|
||||
&& !preg_match('@^(DATE|DATETIME|TIME|TINYBLOB|TINYTEXT|BLOB|TEXT|MEDIUMBLOB|MEDIUMTEXT|LONGBLOB|LONGTEXT|SERIAL|BOOLEAN)$@i',
|
||||
$_REQUEST['item_param_type'][$i])) {
|
||||
$params .= "(" . $_REQUEST['item_param_length'][$i] . ")";
|
||||
} else if ($_REQUEST['item_param_length'][$i] == ''
|
||||
@@ -726,7 +726,7 @@ function PMA_RTN_getQueryFromRequest()
|
||||
$errors[] = __('You must provide a valid return type for the routine.');
|
||||
}
|
||||
if (! empty($_REQUEST['item_returnlength'])
|
||||
&& !preg_match('@^(DATE|DATETIME|TIME|TINYBLOB|TINYTEXT|BLOB|TEXT|MEDIUMBLOB|MEDIUMTEXT|LONGBLOB|LONGTEXT)$@i',
|
||||
&& !preg_match('@^(DATE|DATETIME|TIME|TINYBLOB|TINYTEXT|BLOB|TEXT|MEDIUMBLOB|MEDIUMTEXT|LONGBLOB|LONGTEXT|SERIAL|BOOLEAN)$@i',
|
||||
$_REQUEST['item_returntype'])) {
|
||||
$query .= "(" . intval($_REQUEST['item_returnlength']) . ")";
|
||||
} else if (empty($_REQUEST['item_returnlength'])
|
||||
|
||||
Reference in New Issue
Block a user