Commit 2c52493d authored by Oleksandr Byelkin's avatar Oleksandr Byelkin

Fixed condition

parent ec47beab
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment