summaryrefslogtreecommitdiff
path: root/sql/sql_update.cc
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2003-12-06 23:21:09 +0100
committerunknown <serg@serg.mylan>2003-12-06 23:21:09 +0100
commitf3bf35ec03e683815be4656ec93722e248eb56a0 (patch)
tree63c4006a74c5d36672d3bce9c6978cb1a831bdbe /sql/sql_update.cc
parentafbeb64e936f4282661e7e904fa9a886f89a653c (diff)
downloadmariadb-git-f3bf35ec03e683815be4656ec93722e248eb56a0.tar.gz
QUERY_NO_GOOD_INDEX_USED and QUERY_NO_INDEX_USED moved from thd->lex.select_lex->options to thd->server_status
mysql-test/r/union.result: union and slow log tests mysql-test/t/union.test: union and slow log tests
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 d623ea66dfb..95dff107350 100644
--- a/sql/sql_update.cc
+++ b/sql/sql_update.cc
@@ -166,7 +166,7 @@ int mysql_update(THD *thd,
/* If running in safe sql mode, don't allow updates without keys */
if (table->quick_keys.is_clear_all())
{
- thd->lex.select_lex.options|=QUERY_NO_INDEX_USED;
+ thd->server_status|=SERVER_QUERY_NO_INDEX_USED;
if (safe_update && !using_limit)
{
my_message(ER_UPDATE_WITHOUT_KEY_IN_SAFE_MODE,