diff options
author | unknown <bar@mysql.com> | 2006-01-12 11:41:57 +0400 |
---|---|---|
committer | unknown <bar@mysql.com> | 2006-01-12 11:41:57 +0400 |
commit | 4ab53435d63fae2999d41809793490712f2af9fa (patch) | |
tree | 2a26368650a63cd6e6ec0615c46a4dc45aa33e35 /sql | |
parent | 04ed04461ceac5ac26fbba8f2c6c0adaae32e391 (diff) | |
download | mariadb-git-4ab53435d63fae2999d41809793490712f2af9fa.tar.gz |
sql_table.cc:
Typo fix.
Thanks Serg for noticing this.
sql/sql_table.cc:
Typo fix.
Thanks Serg for noticing this.
Diffstat (limited to 'sql')
-rw-r--r-- | sql/sql_table.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc index dd91d7ecd0f..d521f40c287 100644 --- a/sql/sql_table.cc +++ b/sql/sql_table.cc @@ -126,8 +126,8 @@ uint filename_to_tablename(const char *from, char *to, uint to_length) uint tablename_to_filename(const char *from, char *to, uint to_length) { uint errors; - if (from[0] && !strncmp(from, MYSQL50_TABLE_NAME_PREFIX, - MYSQL50_TABLE_NAME_PREFIX_LENGTH)) + if (from[0] == '#' && !strncmp(from, MYSQL50_TABLE_NAME_PREFIX, + MYSQL50_TABLE_NAME_PREFIX_LENGTH)) return my_snprintf(to, to_length, "%s", from + 9); return strconvert(system_charset_info, from, &my_charset_filename, to, to_length, &errors); |