Skip to content

Commit

Permalink
Fixed condition
Browse files Browse the repository at this point in the history
  • Loading branch information
sanja-byelkin committed Sep 9, 2016
1 parent ec47bea commit 2c52493
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sql/sql_table.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6178,7 +6178,7 @@ handle_if_exists_options(THD *thd, TABLE *table, Alter_info *alter_info)
uint c;
while ((check=it++))
{
if ((!check->flags & Alter_info::CHECK_CONSTRAINT_IF_NOT_EXISTS) &&
if (!(check->flags & Alter_info::CHECK_CONSTRAINT_IF_NOT_EXISTS) &&
check->name.length)
continue;
check->flags= 0;
Expand Down

0 comments on commit 2c52493

Please sign in to comment.