Commit 92fdd3b7 authored by unknown's avatar unknown

ndb - fix typo


sql/ha_ndbcluster.cc:
  typo, no effect
parent d44e85e7
...@@ -1187,7 +1187,7 @@ static void shrink_varchar(Field* field, const byte* & ptr, char* buf) ...@@ -1187,7 +1187,7 @@ static void shrink_varchar(Field* field, const byte* & ptr, char* buf)
{ {
if (field->type() == MYSQL_TYPE_VARCHAR) { if (field->type() == MYSQL_TYPE_VARCHAR) {
Field_varstring* f= (Field_varstring*)field; Field_varstring* f= (Field_varstring*)field;
if (f->length_bytes < 256) { if (f->length_bytes == 1) {
uint pack_len= field->pack_length(); uint pack_len= field->pack_length();
DBUG_ASSERT(1 <= pack_len && pack_len <= 256); DBUG_ASSERT(1 <= pack_len && pack_len <= 256);
if (ptr[1] == 0) { if (ptr[1] == 0) {
......
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