diff options
author | unknown <monty@mysql.com> | 2005-10-13 19:40:46 +0300 |
---|---|---|
committer | unknown <monty@mysql.com> | 2005-10-13 19:40:46 +0300 |
commit | 79538fb62f8b10190a3b2248d22eaaade4cd1e4d (patch) | |
tree | 1c1d39c480d1b8421f41d2335a741a0045805630 /sql/handler.cc | |
parent | 706157f025c8bfe01faa3783a54eecb8884b0d3f (diff) | |
download | mariadb-git-79538fb62f8b10190a3b2248d22eaaade4cd1e4d.tar.gz |
Fixes during review of new pushed code
sql/handler.cc:
Indentation fixes
sql/item.cc:
Remove not needed test of *ref (If ref is set it always points to a valid address)
sql/table.cc:
Indentation changes
Moved buff_end directly after 'buff' assignment to make code more clear
sql/unireg.cc:
Indentation changes
Diffstat (limited to 'sql/handler.cc')
-rw-r--r-- | sql/handler.cc | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/sql/handler.cc b/sql/handler.cc index 15394851e02..81e94af5dc7 100644 --- a/sql/handler.cc +++ b/sql/handler.cc @@ -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); |