summaryrefslogtreecommitdiff
path: root/sql/sql_table.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_table.cc')
-rw-r--r--sql/sql_table.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc
index a28d5807ce4..c7ec0dd99ef 100644
--- a/sql/sql_table.cc
+++ b/sql/sql_table.cc
@@ -6286,7 +6286,7 @@ drop_create_field:
Key_part_spec *kp;
if ((kp= part_it++))
chkname= kp->field_name.str;
- if (keyname == NULL)
+ if (chkname == NULL)
continue;
}
if (key->type == chk_key->type &&