Commit 86c69263 authored by Sergei Petrunia's avatar Sergei Petrunia

MDEV-14389: MyRocks and NOPAD collations

Part #2: Take into accont the fact that three binary collations that
we handle are technically NOPAD collations
parent e12f77a7
......@@ -5971,6 +5971,15 @@ rdb_field_uses_nopad_collation(const my_core::Field *const field) {
/* Handle [VAR](CHAR|BINARY) or TEXT|BLOB */
if (type == MYSQL_TYPE_VARCHAR || type == MYSQL_TYPE_STRING ||
type == MYSQL_TYPE_BLOB) {
/*
This is technically a NOPAD collation but it's a binary collation
that we can handle.
*/
if (RDB_INDEX_COLLATIONS.find(field->charset()->number) !=
RDB_INDEX_COLLATIONS.end())
return false;
return (field->charset()->state & MY_CS_NOPAD);
}
return false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment