1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

Fixes during review of new pushed code

This commit is contained in:
monty@mysql.com
2005-10-13 19:40:46 +03:00
parent 5513ab69b7
commit 49a30ef513
4 changed files with 17 additions and 14 deletions

View File

@ -185,16 +185,16 @@ enum db_type ha_resolve_by_name(const char *name, uint namelen)
handlerton **types;
if (thd && !my_strnncoll(&my_charset_latin1,
(const uchar *)name, namelen,
(const uchar *)"DEFAULT", 7))
(const uchar *)name, namelen,
(const uchar *)"DEFAULT", 7))
return (enum db_type) thd->variables.table_type;
retest:
for (types= sys_table_types; *types; types++)
{
if (!my_strnncoll(&my_charset_latin1,
(const uchar *)name, namelen,
(const uchar *)(*types)->name, strlen((*types)->name)))
(const uchar *)name, namelen,
(const uchar *)(*types)->name, strlen((*types)->name)))
return (enum db_type) (*types)->db_type;
}
@ -204,8 +204,9 @@ retest:
for (table_alias= sys_table_aliases; table_alias->type; table_alias++)
{
if (!my_strnncoll(&my_charset_latin1,
(const uchar *)name, namelen,
(const uchar *)table_alias->alias, strlen(table_alias->alias)))
(const uchar *)name, namelen,
(const uchar *)table_alias->alias,
strlen(table_alias->alias)))
{
name= table_alias->type;
namelen= strlen(name);