1
0
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:
Igor Babaev
2012-01-13 19:00:50 -08:00
parent 6dfe0956d6
commit 4de7978a3f
7 changed files with 40 additions and 16 deletions

View File

@ -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,