From 43abc597b8854c44465a8a936febe780f223628c Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 19 Jan 2004 23:51:17 +0100 Subject: Code cleanup Fixed bug in optimizer where it didn't choose right table order in some cases myisam/mi_delete.c: Remove not needed include errno.h myisam/mi_delete_table.c: Remove not needed include errno.h myisam/mi_extra.c: Remove not needed include errno.h myisam/mi_locking.c: Remove not needed include errno.h myisam/mi_log.c: Remove not needed include errno.h myisam/mi_page.c: Remove not needed include errno.h myisam/mi_rename.c: Remove not needed include errno.h myisam/mi_update.c: Remove not needed include errno.h myisam/mi_write.c: Remove not needed include errno.h mysql-test/r/subselect.result: Update of test after optimzier fix mysys/charset.c: Code cleanup sql/item_cmpfunc.cc: Removed not needed comment Indentation cleanup sql/item_cmpfunc.h: Indentation cleanup sql/mysqld.cc: Updated comment for expire_logs_days sql/set_var.cc: Remved duplicate code sql/sql_select.cc: Fixed bug in optimizer where it didn't choose right table order in some cases (Bug found and fixed by Igor) --- sql/item_cmpfunc.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sql/item_cmpfunc.h') diff --git a/sql/item_cmpfunc.h b/sql/item_cmpfunc.h index 541bc47557d..f5cd608ebad 100644 --- a/sql/item_cmpfunc.h +++ b/sql/item_cmpfunc.h @@ -919,8 +919,8 @@ public: Item* copy_andor_structure(THD *thd) { Item_cond_and *item; - if((item= new Item_cond_and(thd, *this))) - item->copy_andor_arguments(thd, this); + if ((item= new Item_cond_and(thd, *this))) + item->copy_andor_arguments(thd, this); return item; } Item *neg_transformer(); @@ -940,7 +940,7 @@ public: Item* copy_andor_structure(THD *thd) { Item_cond_or *item; - if((item= new Item_cond_or(thd, *this))) + if ((item= new Item_cond_or(thd, *this))) item->copy_andor_arguments(thd, this); return item; } -- cgit v1.2.1