Commit 188899cd authored by unknown's avatar unknown

bug#25746 ndb: 4209 error with 2 VARCHAR primary keys

- post review changes

parent 5f9e20de
......@@ -3144,7 +3144,7 @@ void ha_ndbcluster::position(const byte *record)
size_t len = key_part->length;
const byte * ptr = record + key_part->offset;
Field *field = key_part->field;
if (unlikely(field->type() == MYSQL_TYPE_VARCHAR))
if (field->type() == MYSQL_TYPE_VARCHAR)
{
if (((Field_varstring*)field)->length_bytes == 1)
{
......
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