summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2021-03-30 17:49:48 +0300
committerSergei Golubchik <serg@mariadb.org>2021-05-19 22:54:12 +0200
commit58f26ab9d577f71206a3c3cbf2f1c0f0ebd154e0 (patch)
tree2ab0890b42185e834ebb655cf88456770498511c
parente45b54b75db4060b550ff4a4820e783ff7b730c3 (diff)
downloadmariadb-git-58f26ab9d577f71206a3c3cbf2f1c0f0ebd154e0.tar.gz
Renamed comment_length -> get_comment
-rw-r--r--sql/sql_table.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc
index 6bff92fa3f7..9da8ea1e442 100644
--- a/sql/sql_table.cc
+++ b/sql/sql_table.cc
@@ -1039,8 +1039,8 @@ bool mysql_rm_table(THD *thd,TABLE_LIST *tables, bool if_exists,
@retval >0 the lenght of the comment found
*/
-static uint32 comment_length(THD *thd, uint32 comment_pos,
- const char **comment_start)
+static uint32 get_comment(THD *thd, uint32 comment_pos,
+ const char **comment_start)
{
/* We use uchar * here to make array indexing portable */
const uchar *query= (uchar*) thd->query();
@@ -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 tables Tables to drop
@@ -1631,8 +1631,8 @@ err:
built_query.append(STRING_WITH_LEN("IF EXISTS "));
/* Preserve comment in original query */
- if ((comment_len= comment_length(thd, if_exists ? 17:9,
- &comment_start)))
+ if ((comment_len= get_comment(thd, if_exists ? 17:9,
+ &comment_start)))
{
built_query.append(comment_start, comment_len);
built_query.append(' ');