diff --git a/sql/sql_view.cc b/sql/sql_view.cc index 2b155111e6fd6a691d955fdcc54ece3489a3abe6..5bf67af92710ae982c0a2c4c95604c7e320442b0 100644 --- a/sql/sql_view.cc +++ b/sql/sql_view.cc @@ -562,7 +562,7 @@ bool mysql_create_view(THD *thd, TABLE_LIST *views, LEX_STRING *name; int i; - for (i= 0; name= names++; i++) + for (i= 0; (name= names++); i++) { buff.append(i ? ", " : "("); append_identifier(thd, &buff, name->str, name->length);