diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index 649714315a6..abc945647bd 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -7227,7 +7227,7 @@ bool create_table_precheck(THD *thd, TABLE_LIST *tables, lex->create_info.merge_list.first)) goto err; if (grant_option && want_priv != CREATE_TMP_ACL && - check_grant(thd, want_priv, create_table, 0, UINT_MAX, 0)) + check_grant(thd, want_priv, create_table, 0, 1, 0)) goto err; if (select_lex->item_list.elements)