Skip to content
Permalink
Browse files
Merge bb-10.2-ext into 10.3
  • Loading branch information
dr-m committed Dec 12, 2017
2 parents c2c4c19 + 0628123 commit 0edd395
Showing 1 changed file with 9 additions and 0 deletions.
@@ -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;

0 comments on commit 0edd395

Please sign in to comment.