Commit 2f633a11 authored by unknown's avatar unknown

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

- post review changes
parent 15f091d6
......@@ -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