diff options
author | unknown <serg@serg.mylan> | 2003-05-03 18:08:11 +0200 |
---|---|---|
committer | unknown <serg@serg.mylan> | 2003-05-03 18:08:11 +0200 |
commit | 155b8e001307bced530900fe92644c1daa929fb1 (patch) | |
tree | 819bee9fd1d5da0ae3e79f2aed4b19888b6666f6 /sql/sql_delete.cc | |
parent | ba886f1086b4add9c3421988a57758eac9203f4e (diff) | |
download | mariadb-git-155b8e001307bced530900fe92644c1daa929fb1.tar.gz |
"delete from table where const" bug fixed
Diffstat (limited to 'sql/sql_delete.cc')
-rw-r--r-- | sql/sql_delete.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_delete.cc b/sql/sql_delete.cc index 1507d49ebd6..caa1e0e0312 100644 --- a/sql/sql_delete.cc +++ b/sql/sql_delete.cc @@ -54,7 +54,7 @@ int mysql_delete(THD *thd, TABLE_LIST *table_list, COND *conds, ORDER *order, DBUG_RETURN(-1); /* Test if the user wants to delete all rows */ - if (!using_limit && (!conds || conds->const_item()) && + if (!using_limit && (!conds || (conds->const_item() && conds->val_int())) && !(specialflag & (SPECIAL_NO_NEW_FUNC | SPECIAL_SAFE_MODE)) && !safe_update) { deleted= table->file->records; |