summaryrefslogtreecommitdiff
path: root/sql/sql_update.cc
diff options
context:
space:
mode:
authorunknown <sasha@mysql.sashanet.com>2001-05-10 17:08:29 -0600
committerunknown <sasha@mysql.sashanet.com>2001-05-10 17:08:29 -0600
commit174fdf05a14cecb499030460ecceed5f4df79cf9 (patch)
tree11abf19d830918f05275466099b07d15bd3fba78 /sql/sql_update.cc
parent9192600eb7c52f2675a67548849409dec2364165 (diff)
downloadmariadb-git-174fdf05a14cecb499030460ecceed5f4df79cf9.tar.gz
fixes after merge. Now it compiles and passes the test suite
Docs/manual.texi: fixed bug from merge sql/sql_delete.cc: examined rows fix sql/sql_select.cc: fix bugs from merge sql/sql_update.cc: examined rows merge completion sql/sql_yacc.yy: fixed bugs from merge
Diffstat (limited to 'sql/sql_update.cc')
-rw-r--r--sql/sql_update.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/sql_update.cc b/sql/sql_update.cc
index 3cba3b4be6a..b6b22ecbc99 100644
--- a/sql/sql_update.cc
+++ b/sql/sql_update.cc
@@ -175,6 +175,7 @@ int mysql_update(THD *thd,
TABLE_LIST tables;
List<Item> fields;
List<Item> all_fields;
+ ha_rows examined_rows;
bzero((char*) &tables,sizeof(tables));
tables.table = table;
@@ -184,7 +185,8 @@ int mysql_update(THD *thd,
if (setup_order(thd, &tables, fields, all_fields, order) ||
!(sortorder=make_unireg_sortorder(order, &length)) ||
(table->found_records = filesort(&table, sortorder, length,
- (SQL_SELECT *) 0, 0L, HA_POS_ERROR))
+ (SQL_SELECT *) 0, 0L,
+ HA_POS_ERROR, &examined_rows))
== HA_POS_ERROR)
{
delete select;