From 48bc7b78221aae11ed62d57dcf8300f209c4b2ca Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 14 Jun 2001 15:12:01 +0300 Subject: [PATCH] cleanup; Fixed type bug in new delete code. sql/sql_class.h: Fixed types sql/sql_delete.cc: Fixed typo-bug. --- sql/sql_class.h | 8 +++++--- sql/sql_delete.cc | 3 ++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/sql/sql_class.h b/sql/sql_class.h index 3b83558ebdb..6963b890051 100644 --- a/sql/sql_class.h +++ b/sql/sql_class.h @@ -603,12 +603,14 @@ public: byte * dup_checking; THD *thd; ha_rows deleted; - int num_of_tables, error; + uint num_of_tables; + int error; thr_lock_type lock_option; bool do_delete; public: - multi_delete(TABLE_LIST *dt, thr_lock_type o, uint n) - : delete_tables (dt), lock_option(o), deleted(0), num_of_tables(n), error(0) + multi_delete(TABLE_LIST *dt, thr_lock_type lock_option_arg, uint n) + : delete_tables (dt), deleted(0), num_of_tables(n), error(0), + lock_option(lock_option_arg) { thd = current_thd; do_delete = false; } diff --git a/sql/sql_delete.cc b/sql/sql_delete.cc index 30b0f8a82bb..dbcd38180dc 100644 --- a/sql/sql_delete.cc +++ b/sql/sql_delete.cc @@ -809,7 +809,8 @@ int multi_delete::do_deletes (bool from_send_error) #ifdef SINISAS_STRIP delete select; #endif - if (error = -1) error = 0; + if (error == -1) + error = 0; #if 0 } #endif