1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-6687: Assertion `0' failed in Protocol::end_statement on query

Redefine FT_KEYPART in a way that it does not conflict with Hash Join.
Hash join stores field->field_index in KEYUSE::keypart, so we must
use a value of FT_KEYPART that's greater than MAX_FIELDS.
This commit is contained in:
Sergei Petrunia
2015-02-19 20:54:20 +03:00
parent f37bdd9c1a
commit 0f8b194146
4 changed files with 38 additions and 2 deletions

View File

@@ -220,7 +220,7 @@ TEST_join(JOIN *join)
}
#define FT_KEYPART (MAX_REF_PARTS+10)
#define FT_KEYPART (MAX_FIELDS+10)
void print_keyuse(KEYUSE *keyuse)
{