summaryrefslogtreecommitdiff
path: root/sql/sql_parse.cc
diff options
context:
space:
mode:
authorunknown <monty@mashka.mysql.fi>2003-03-16 16:30:54 +0200
committerunknown <monty@mashka.mysql.fi>2003-03-16 16:30:54 +0200
commitbfbb0ad69df21854f2db5fb2b9c708b2a576929e (patch)
treef6d63b9728c1157c31c1f74bbe32bc1e50de79b8 /sql/sql_parse.cc
parentf08688c5ee2aed851f92393b06b1b704ef0dd118 (diff)
parent9681f4a8cd242e3828f211e0bed5235e70ee5f4e (diff)
downloadmariadb-git-bfbb0ad69df21854f2db5fb2b9c708b2a576929e.tar.gz
Merge bk-internal.mysql.com:/home/bk/mysql-4.0
into mashka.mysql.fi:/home/my/mysql-4.0
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r--sql/sql_parse.cc8
1 files changed, 1 insertions, 7 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc
index 24643f18ac7..dde4b6c5c93 100644
--- a/sql/sql_parse.cc
+++ b/sql/sql_parse.cc
@@ -1521,11 +1521,6 @@ mysql_execute_command(void)
if (error)
goto error;
}
- if (strlen(tables->real_name) > NAME_LEN)
- {
- net_printf(&thd->net,ER_WRONG_TABLE_NAME,tables->real_name);
- break;
- }
LOCK_ACTIVE_MI;
// fetch_master_table will send the error to the client on failure
if (!fetch_master_table(thd, tables->db, tables->real_name,
@@ -3223,8 +3218,7 @@ TABLE_LIST *add_table_to_list(Table_ident *table, LEX_STRING *alias,
if (!table)
DBUG_RETURN(0); // End of memory
alias_str= alias ? alias->str : table->table.str;
- if (table->table.length > NAME_LEN ||
- check_table_name(table->table.str,table->table.length) ||
+ if (check_table_name(table->table.str,table->table.length) ||
table->db.str && check_db_name(table->db.str))
{
net_printf(&thd->net,ER_WRONG_TABLE_NAME,table->table.str);