mirror of
https://github.com/MariaDB/server.git
synced 2026-04-30 12:15:32 +02:00
cleanup; Fixed type bug in new delete code.
sql/sql_class.h: Fixed types sql/sql_delete.cc: Fixed typo-bug.
This commit is contained in:
parent
9d0e2843c4
commit
48bc7b7822
2 changed files with 7 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue