summaryrefslogtreecommitdiff
path: root/sql/sql_delete.cc
diff options
context:
space:
mode:
authormonty@hundin.mysql.fi <>2001-11-22 17:55:18 +0200
committermonty@hundin.mysql.fi <>2001-11-22 17:55:18 +0200
commita66ddaf8ba4b7e5478c376ce65b57d6fdf25607b (patch)
tree5c88c46555c8f2f0d49c779e6347d2d6139a84e0 /sql/sql_delete.cc
parent9265a4df45ea24b029ce024df7c9f34b7248a0d0 (diff)
downloadmariadb-git-a66ddaf8ba4b7e5478c376ce65b57d6fdf25607b.tar.gz
Fixed fulltext after merge from 3.23.45
First (incomplete) version of transaction and as3ap tests.
Diffstat (limited to 'sql/sql_delete.cc')
-rw-r--r--sql/sql_delete.cc14
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)
{