use new ndb bitformat to shrink storage

This commit is contained in:
tomas@poseidon.ndb.mysql.com 2004-12-09 14:17:58 +01:00
parent b883f8fd81
commit c794508e1f

View file

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