diff options
author | unknown <monty@hundin.mysql.fi> | 2001-11-22 17:55:18 +0200 |
---|---|---|
committer | unknown <monty@hundin.mysql.fi> | 2001-11-22 17:55:18 +0200 |
commit | 38357b30e6ccf4278807cbd8b91ca14efe3fff15 (patch) | |
tree | 5c88c46555c8f2f0d49c779e6347d2d6139a84e0 /sql/sql_delete.cc | |
parent | e673b6dcf8b55ec4457ab554a1c09ccf3c079463 (diff) | |
download | mariadb-git-38357b30e6ccf4278807cbd8b91ca14efe3fff15.tar.gz |
Fixed fulltext after merge from 3.23.45
First (incomplete) version of transaction and as3ap tests.
BitKeeper/etc/ignore:
Added sql-bench/test-transactions to the ignore list
mysql-test/r/fulltext.result:
Update fulltext results after merge
sql-bench/Makefile.am:
Added transaction test
sql-bench/run-all-tests.sh:
Added transaction test
sql-bench/server-cfg.sh:
Added transaction test
sql-bench/test-ATIS.sh:
Cleanup
sql/item_func.cc:
Fix bad merge
sql/mysqld.cc:
Cleanup
sql/sql_base.cc:
Fix bad merge
sql/sql_delete.cc:
Cleanup
sql/sql_parse.cc:
Fix bad merge
sql/sql_select.cc:
Fix bad merge
sql/sql_union.cc:
Fix bad merge
tools/mysqlmanager.c:
C
Diffstat (limited to 'sql/sql_delete.cc')
-rw-r--r-- | sql/sql_delete.cc | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/sql/sql_delete.cc b/sql/sql_delete.cc index 464216d56ba..63e003178c2 100644 --- a/sql/sql_delete.cc +++ b/sql/sql_delete.cc @@ -1,24 +1,28 @@ /* Copyright (C) 2000 MySQL AB - + This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ + /* Delete of records and truncate of tables. + Multi-table deletes were introduced by Monty and Sinisa */ + + #include "mysql_priv.h" #include "ha_innobase.h" #include "sql_select.h" @@ -75,7 +79,7 @@ int mysql_delete(THD *thd, TABLE_LIST *table_list, COND *conds, ORDER *order, if (error) DBUG_RETURN(-1); if ((select && select->check_quick(test(thd->options & SQL_SAFE_UPDATES), - limit)) || + limit)) || !limit) { delete select; @@ -125,8 +129,8 @@ int mysql_delete(THD *thd, TABLE_LIST *table_list, COND *conds, ORDER *order, } init_read_record(&info,thd,table,select,1,1); - init_ftfuncs(thd,1); deleted=0L; + init_ftfuncs(thd,1); thd->proc_info="updating"; while (!(error=info.read_record(&info)) && !thd->killed) { |