Commit b1d69736 authored by unknown's avatar unknown

use new ndb bitformat to shrink storage

parent b8970d99
...@@ -3331,7 +3331,10 @@ static int create_ndb_column(NDBCOL &col, ...@@ -3331,7 +3331,10 @@ static int create_ndb_column(NDBCOL &col,
col.setCharset(cs); col.setCharset(cs);
} }
if (field->pack_length() == 0) if (field->pack_length() == 0)
col.setLength(1); // currently ndb does not support size 0 {
col.setType(NDBCOL::Bit);
col.setLength(1);
}
else else
col.setLength(field->pack_length()); col.setLength(field->pack_length());
break; break;
......
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