summaryrefslogtreecommitdiff
path: root/sql/sql_update.cc
diff options
context:
space:
mode:
authorunknown <sergefp@mysql.com>2004-03-15 23:11:58 +0300
committerunknown <sergefp@mysql.com>2004-03-15 23:11:58 +0300
commit6022c31a262881fecc4cd837a41e036489aab8f5 (patch)
treed85a3505c5e26ff45f5a5c075bfd90b67ac8465c /sql/sql_update.cc
parent857b59578c61a15b842f30c1a9b1e0fad8c868a3 (diff)
downloadmariadb-git-6022c31a262881fecc4cd837a41e036489aab8f5.tar.gz
Fix for Bug#3183
Diffstat (limited to 'sql/sql_update.cc')
-rw-r--r--sql/sql_update.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/sql_update.cc b/sql/sql_update.cc
index 03ab3d01c1a..24199df9b84 100644
--- a/sql/sql_update.cc
+++ b/sql/sql_update.cc
@@ -246,7 +246,11 @@ int mysql_update(THD *thd,
DISK_BUFFER_SIZE, MYF(MY_WME)))
goto err;
+ /* If quick select is used, initialize it before retrieving rows. */
+ if (select && select->quick && select->quick->reset())
+ goto err;
init_read_record(&info,thd,table,select,0,1);
+
thd->proc_info="Searching rows for update";
uint tmp_limit= limit;