Commit e9b140bc authored by serg@serg.mylan's avatar serg@serg.mylan

fixed "condition is always false" warnings

parent 87840e84
...@@ -1627,9 +1627,8 @@ bool dispatch_command(enum enum_server_command command, THD *thd, ...@@ -1627,9 +1627,8 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
break; break;
mysql_log.write(thd,command,packet); mysql_log.write(thd,command,packet);
bzero(&create_info, sizeof(create_info)); bzero(&create_info, sizeof(create_info));
if (mysql_create_db(thd, (lower_case_table_names == 2 ? alias : db), error= mysql_create_db(thd, (lower_case_table_names == 2 ? alias : db),
&create_info, 0) < 0) &create_info, 0);
error= TRUE;
break; break;
} }
case COM_DROP_DB: // QQ: To be removed case COM_DROP_DB: // QQ: To be removed
...@@ -1652,9 +1651,8 @@ bool dispatch_command(enum enum_server_command command, THD *thd, ...@@ -1652,9 +1651,8 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
break; break;
} }
mysql_log.write(thd,command,db); mysql_log.write(thd,command,db);
if (mysql_rm_db(thd, (lower_case_table_names == 2 ? alias : db), error= mysql_rm_db(thd, (lower_case_table_names == 2 ? alias : db),
0, 0) < 0) 0, 0) ;
error= TRUE;
break; break;
} }
#ifndef EMBEDDED_LIBRARY #ifndef EMBEDDED_LIBRARY
......
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