summaryrefslogtreecommitdiff
path: root/sql/sql_base.cc
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2022-12-07 09:43:13 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2022-12-07 09:43:13 +0200
commitb3c254339be29d3be24c16fa0c150ff8ebd0bfda (patch)
treee1cebed6f3689750d4611dd8a12185c86054bb56 /sql/sql_base.cc
parent0751bfbcaf08c7c32de8d90b41b6c50ab525da6f (diff)
parent9e27e53dfac1c911a593065a0fcadc5729957d29 (diff)
downloadmariadb-git-b3c254339be29d3be24c16fa0c150ff8ebd0bfda.tar.gz
Merge 10.7 into 10.8
Diffstat (limited to 'sql/sql_base.cc')
-rw-r--r--sql/sql_base.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_base.cc b/sql/sql_base.cc
index b7296395444..4142540fa88 100644
--- a/sql/sql_base.cc
+++ b/sql/sql_base.cc
@@ -7738,6 +7738,8 @@ bool setup_fields(THD *thd, Ref_ptr_array ref_pointer_array,
thd->lex->current_select->select_list_tables|= item->used_tables();
thd->lex->used_tables|= item->used_tables();
thd->lex->current_select->cur_pos_in_select_list++;
+
+ thd->lex->current_select->rownum_in_field_list |= item->with_rownum_func();
}
thd->lex->current_select->is_item_list_lookup= save_is_item_list_lookup;
thd->lex->current_select->cur_pos_in_select_list= UNDEF_POS;