summaryrefslogtreecommitdiff
path: root/sql/sql_update.cc
diff options
context:
space:
mode:
authorSinisa@sinisa.nasamreza.org <>2001-06-03 17:07:26 +0300
committerSinisa@sinisa.nasamreza.org <>2001-06-03 17:07:26 +0300
commit338b51b5a7e23983f39c06b4b74523349401245c (patch)
tree117457cc851c63311919cde097c85f86ae4d9995 /sql/sql_update.cc
parent73e6a6905209b92413c43f9da750278e98a6932a (diff)
downloadmariadb-git-338b51b5a7e23983f39c06b4b74523349401245c.tar.gz
These are actually two changesets. One for splitting LEX in two and
the other for multi-table delete
Diffstat (limited to 'sql/sql_update.cc')
-rw-r--r--sql/sql_update.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_update.cc b/sql/sql_update.cc
index b6b22ecbc99..bdcc6c00b19 100644
--- a/sql/sql_update.cc
+++ b/sql/sql_update.cc
@@ -128,7 +128,7 @@ int mysql_update(THD *thd,
/* If running in safe sql mode, don't allow updates without keys */
if (!table->quick_keys)
{
- thd->lex.options|=QUERY_NO_INDEX_USED;
+ thd->lex.select_lex.options|=QUERY_NO_INDEX_USED;
if ((thd->options & OPTION_SAFE_UPDATES) && limit == HA_POS_ERROR)
{
delete select;