Commit 0dd60c1d authored by mmakela's avatar mmakela

branches/zip: dtype_new_store_for_order_and_null_size(): Add ut_ad() on mtype.

parent b830a940
...@@ -285,6 +285,10 @@ dtype_new_store_for_order_and_null_size( ...@@ -285,6 +285,10 @@ dtype_new_store_for_order_and_null_size(
#endif #endif
ulint len; ulint len;
ut_ad(type);
ut_ad(type->mtype >= DATA_VARCHAR);
ut_ad(type->mtype <= DATA_MYSQL);
buf[0] = (byte)(type->mtype & 0xFFUL); buf[0] = (byte)(type->mtype & 0xFFUL);
if (type->prtype & DATA_BINARY_TYPE) { if (type->prtype & DATA_BINARY_TYPE) {
......
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