mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
merge
This commit is contained in:
@ -148,7 +148,8 @@ static char reserved_map[256]=
|
|||||||
int check_if_legal_tablename(const char *name)
|
int check_if_legal_tablename(const char *name)
|
||||||
{
|
{
|
||||||
DBUG_ENTER("check_if_legal_tablename");
|
DBUG_ENTER("check_if_legal_tablename");
|
||||||
DBUG_RETURN((reserved_map[(uchar) name[0]] & 1) &&
|
DBUG_RETURN(name[0] != 0 && name[1] != 0 &&
|
||||||
|
(reserved_map[(uchar) name[0]] & 1) &&
|
||||||
(reserved_map[(uchar) name[1]] & 2) &&
|
(reserved_map[(uchar) name[1]] & 2) &&
|
||||||
(reserved_map[(uchar) name[2]] & 4) &&
|
(reserved_map[(uchar) name[2]] & 4) &&
|
||||||
str_list_find(&reserved_names[1], name));
|
str_list_find(&reserved_names[1], name));
|
||||||
|
@ -4421,6 +4421,10 @@ my_wc_mb_filename(CHARSET_INFO *cs __attribute__((unused)),
|
|||||||
{
|
{
|
||||||
int code;
|
int code;
|
||||||
char hex[]= "0123456789abcdef";
|
char hex[]= "0123456789abcdef";
|
||||||
|
|
||||||
|
if (s >= e)
|
||||||
|
return MY_CS_TOOSMALL;
|
||||||
|
|
||||||
if (wc < 128 && filename_safe_char[wc])
|
if (wc < 128 && filename_safe_char[wc])
|
||||||
{
|
{
|
||||||
*s= (uchar) wc;
|
*s= (uchar) wc;
|
||||||
|
Reference in New Issue
Block a user