mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Back-ported the fix and the test case for bug #50257 from mariadb-5.3 code line.
Adjusted results for a few test cases.
This commit is contained in:
@ -5913,8 +5913,7 @@ static bool create_ref_for_key(JOIN *join, JOIN_TAB *j, KEYUSE *org_keyuse,
|
||||
if (keyuse->null_rejecting)
|
||||
j->ref.null_rejecting |= 1 << i;
|
||||
keyuse_uses_no_tables= keyuse_uses_no_tables && !keyuse->used_tables;
|
||||
if (!keyuse->used_tables &&
|
||||
!(join->select_options & SELECT_DESCRIBE))
|
||||
if (!keyuse->used_tables &&!thd->lex->describe)
|
||||
{ // Compare against constant
|
||||
store_key_item tmp(thd, keyinfo->key_part[i].field,
|
||||
key_buff + maybe_null,
|
||||
|
Reference in New Issue
Block a user