Merge pull request #13892 from williamdes/patch-2
Fix charset error when creating/editing routines; bug #13889
This commit is contained in:
commit
68ece7b2fc
@ -1202,10 +1202,12 @@ class Routines
|
||||
}
|
||||
if (! empty($_REQUEST['item_param_opts_text'][$i])) {
|
||||
if ($dbi->types->getTypeClass($item_param_type[$i]) == 'CHAR') {
|
||||
$params .= ' CHARSET '
|
||||
. mb_strtolower(
|
||||
$_REQUEST['item_param_opts_text'][$i]
|
||||
);
|
||||
if(!in_array($item_param_type[$i],array("VARBINARY","BINARY"))){
|
||||
$params .= ' CHARSET '
|
||||
. mb_strtolower(
|
||||
$_REQUEST['item_param_opts_text'][$i]
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (! empty($_REQUEST['item_param_opts_num'][$i])) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user