Commit 58f26ab9 authored by Monty's avatar Monty Committed by Sergei Golubchik

Renamed comment_length -> get_comment

parent e45b54b7
...@@ -1039,7 +1039,7 @@ bool mysql_rm_table(THD *thd,TABLE_LIST *tables, bool if_exists, ...@@ -1039,7 +1039,7 @@ bool mysql_rm_table(THD *thd,TABLE_LIST *tables, bool if_exists,
@retval >0 the lenght of the comment found @retval >0 the lenght of the comment found
*/ */
static uint32 comment_length(THD *thd, uint32 comment_pos, static uint32 get_comment(THD *thd, uint32 comment_pos,
const char **comment_start) const char **comment_start)
{ {
/* We use uchar * here to make array indexing portable */ /* We use uchar * here to make array indexing portable */
...@@ -1069,7 +1069,7 @@ static uint32 comment_length(THD *thd, uint32 comment_pos, ...@@ -1069,7 +1069,7 @@ static uint32 comment_length(THD *thd, uint32 comment_pos,
} }
/** /**
Execute the drop of a normal or temporary table. Execute the drop of a sequence, view or table (normal or temporary).
@param thd Thread handler @param thd Thread handler
@param tables Tables to drop @param tables Tables to drop
...@@ -1631,7 +1631,7 @@ int mysql_rm_table_no_locks(THD *thd, TABLE_LIST *tables, bool if_exists, ...@@ -1631,7 +1631,7 @@ int mysql_rm_table_no_locks(THD *thd, TABLE_LIST *tables, bool if_exists,
built_query.append(STRING_WITH_LEN("IF EXISTS ")); built_query.append(STRING_WITH_LEN("IF EXISTS "));
/* Preserve comment in original query */ /* Preserve comment in original query */
if ((comment_len= comment_length(thd, if_exists ? 17:9, if ((comment_len= get_comment(thd, if_exists ? 17:9,
&comment_start))) &comment_start)))
{ {
built_query.append(comment_start, comment_len); built_query.append(comment_start, comment_len);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment