We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0af2454 commit ddd3a61Copy full SHA for ddd3a61
sql/opt_hints.cc
@@ -1525,8 +1525,8 @@ bool Opt_hints_qb::compare_table_name(
1525
considered to be equal to `Opt_hints_qb::get_name()`
1526
*/
1527
const LEX_CSTRING &hint_tab_qb_name=
1528
- hint_table_and_qb->qb_name.length > 0 ? hint_table_and_qb->qb_name :
1529
- this->get_name();
+ hint_table_and_qb->qb_name.length > 0 || this->get_name().length == 0
+ ? hint_table_and_qb->qb_name : this->get_name();
1530
1531
CHARSET_INFO *cs= charset_info();
1532
// Compare QB names
0 commit comments