[Commits] 4bfc7a7: Fixed condition

Oleksandr Byelkin sanja at mariadb.com
Fri Sep 9 14:12:47 EEST 2016


revision-id: 4bfc7a76bbe749c487912d8d262a4c1daf988b0c (mariadb-10.1.8-243-g4bfc7a7)
parent(s): 1f2ff25eba6c089b2698cd0dab96155ccbf2afd2
committer: Oleksandr Byelkin
timestamp: 2016-09-09 13:12:47 +0200
message:

Fixed condition

---
 sql/sql_table.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sql/sql_table.cc b/sql/sql_table.cc
index 80fadde..c608507 100644
--- a/sql/sql_table.cc
+++ b/sql/sql_table.cc
@@ -6177,7 +6177,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;


More information about the commits mailing list