summaryrefslogtreecommitdiff
path: root/sql/sql_parse.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r--sql/sql_parse.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc
index 251906cf0c5..e1131a9ac40 100644
--- a/sql/sql_parse.cc
+++ b/sql/sql_parse.cc
@@ -2913,7 +2913,7 @@ static bool create_total_list(THD *thd, LEX *lex, TABLE_LIST **result)
{
/* Add not used table to the total table list */
aux->lock_type= lex->lock_option;
- if (!(cursor = (TABLE_LIST *) thd->memdup((byte*) aux,
+ if (!(cursor = (TABLE_LIST *) thd->memdup((char*) aux,
sizeof(*aux))))
{
send_error(&thd->net,0);