Commit d4472af9 authored by unknown's avatar unknown

Merge heikki@work.mysql.com:/home/bk/mysql

into donna.mysql.fi:/home/heikki/mysqlt


BitKeeper/etc/logging_ok:
  Logging to logging@openlogging.org accepted
parents 6b8294c8 fa843508
ccarkner@nslinuxw10.bedford.progress.com ccarkner@nslinuxw10.bedford.progress.com
heikki@donna.mysql.fi
...@@ -111,7 +111,7 @@ dfield_check_typed( ...@@ -111,7 +111,7 @@ dfield_check_typed(
/* out: TRUE if ok */ /* out: TRUE if ok */
dfield_t* field) /* in: data field */ dfield_t* field) /* in: data field */
{ {
ut_a(dfield_get_type(field)->mtype <= DATA_SYS); ut_a(dfield_get_type(field)->mtype <= DATA_MYSQL);
ut_a(dfield_get_type(field)->mtype >= DATA_VARCHAR); ut_a(dfield_get_type(field)->mtype >= DATA_VARCHAR);
return(TRUE); return(TRUE);
......
...@@ -25,7 +25,7 @@ dtype_validate( ...@@ -25,7 +25,7 @@ dtype_validate(
dtype_t* type) /* in: type struct to validate */ dtype_t* type) /* in: type struct to validate */
{ {
ut_a(type); ut_a(type);
ut_a((type->mtype >= DATA_VARCHAR) && (type->mtype <= DATA_SYS)); ut_a((type->mtype >= DATA_VARCHAR) && (type->mtype <= DATA_MYSQL));
if (type->mtype == DATA_SYS) { if (type->mtype == DATA_SYS) {
ut_a(type->prtype >= DATA_ROW_ID); ut_a(type->prtype >= DATA_ROW_ID);
......
...@@ -149,7 +149,6 @@ dtype_store_for_order_and_null_size( ...@@ -149,7 +149,6 @@ dtype_store_for_order_and_null_size(
dtype_t* type) /* in: type struct */ dtype_t* type) /* in: type struct */
{ {
ut_ad(4 == DATA_ORDER_NULL_TYPE_BUF_SIZE); ut_ad(4 == DATA_ORDER_NULL_TYPE_BUF_SIZE);
ut_ad(type->prtype < 256);
buf[0] = (byte)(type->mtype & 0xFF); buf[0] = (byte)(type->mtype & 0xFF);
buf[1] = (byte)(type->prtype & 0xFF); buf[1] = (byte)(type->prtype & 0xFF);
......
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