1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

ha_innodb.cc:

Remove DEBUG_ASSERT if MySQL internally names a UNIQUE index as the PRIMARY KEY, but inside InnoDB there is no primary key for the table


sql/ha_innodb.cc:
  Remove DEBUG_ASSERT if MySQL internally names a UNIQUE index as the PRIMARY KEY, but inside InnoDB there is no primary key for the table
This commit is contained in:
unknown
2003-02-26 19:52:31 +02:00
parent 7edb0687c7
commit bdc655d969

View File

@ -1263,7 +1263,13 @@ ha_innobase::open(
The column is the row id in the automatical generation case, The column is the row id in the automatical generation case,
and it will never be updated anyway. and it will never be updated anyway.
*/ */
DBUG_ASSERT(key_used_on_scan == MAX_KEY);
if (key_used_on_scan != MAX_KEY) {
fprintf(stderr,
"InnoDB: Warning: table %s key_used_on_scan is %lu even though there is no\n"
"InnoDB: primary key inside InnoDB.\n",
name, (ulint)key_used_on_scan);
}
} }
auto_inc_counter_for_this_stat = 0; auto_inc_counter_for_this_stat = 0;