diff options
| author | Monty <monty@mariadb.org> | 2023-01-12 22:31:18 +0200 |
|---|---|---|
| committer | Monty <monty@mariadb.org> | 2023-01-13 16:23:21 +0200 |
| commit | 981a6b704475176d032c13461baffcaf88802d34 (patch) | |
| tree | e4c0772b53b84b08ec9cdcf795b916ce47b9de17 /sql/sql_select.h | |
| parent | 0595dd0f5674845637135feaa5cb7b28d0dc10a9 (diff) | |
| download | mariadb-git-981a6b704475176d032c13461baffcaf88802d34.tar.gz | |
MDEV-30395 Wrong result with semijoin and Federated as outer table
The problem was that federated engine does not support comparable rowids
which was not taken into account by semijoin code.
Fixed by checking that we don't use semijoin with tables that does not
support comparable rowids.
Other things:
- Fixed some typos in the code comments
Diffstat (limited to 'sql/sql_select.h')
| -rw-r--r-- | sql/sql_select.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/sql_select.h b/sql/sql_select.h index d8b0ed290db..807b4115fec 100644 --- a/sql/sql_select.h +++ b/sql/sql_select.h @@ -1238,6 +1238,8 @@ public: table_map outer_join; /* Bitmap of tables used in the select list items */ table_map select_list_used_tables; + /* Tables that has HA_NON_COMPARABLE_ROWID (does not support rowid) set */ + table_map not_usable_rowid_map; ha_rows send_records,found_records,join_examined_rows; /* @@ -1550,7 +1552,7 @@ public: table_count= 0; top_join_tab_count= 0; const_tables= 0; - const_table_map= found_const_table_map= 0; + const_table_map= found_const_table_map= not_usable_rowid_map= 0; aggr_tables= 0; eliminated_tables= 0; join_list= 0; |
