From a4dd7561b05ab1dd939f2f0b4142b0e02c6f181f Mon Sep 17 00:00:00 2001 From: Rouslan Placella Date: Mon, 11 Jul 2011 12:28:09 +0100 Subject: [PATCH] SERIAL and BOOLEAN types have no length. --- libraries/rte/rte_routines.lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/rte/rte_routines.lib.php b/libraries/rte/rte_routines.lib.php index 876a2282dd..a46ed6d2be 100644 --- a/libraries/rte/rte_routines.lib.php +++ b/libraries/rte/rte_routines.lib.php @@ -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'])