1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Backported the fix and the test case for bug 12822678 from the mysql-5.6 code line.

Fixed a bug in select_describe.
Adjusted results for affected test cases.
This commit is contained in:
Igor Babaev
2011-11-01 07:00:55 -07:00
parent 0efacfcfb2
commit a70f7aa5fe
11 changed files with 112 additions and 7 deletions

View File

@ -20750,7 +20750,7 @@ static void select_describe(JOIN *join, bool need_tmp_table, bool need_order,
keylen_str_buf);
tmp3.append(keylen_str_buf, length, cs);
}
if (tab->select && tab->select->quick)
if (tab->type != JT_CONST && tab->select && tab->select->quick)
tab->select->quick->add_keys_and_lengths(&tmp2, &tmp3);
if (key_info || (tab->select && tab->select->quick))
{