diff options
author | unknown <heikki@hundin.mysql.fi> | 2003-02-26 19:52:31 +0200 |
---|---|---|
committer | unknown <heikki@hundin.mysql.fi> | 2003-02-26 19:52:31 +0200 |
commit | bdc655d9690e9bcc071251ab4a19dd7ac40ac15c (patch) | |
tree | 839195c526b2ee181a40bd83c066467455ef0d2d | |
parent | 7edb0687c70759e81943883dc279776c8b8145fb (diff) | |
download | mariadb-git-bdc655d9690e9bcc071251ab4a19dd7ac40ac15c.tar.gz |
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
-rw-r--r-- | sql/ha_innodb.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sql/ha_innodb.cc b/sql/ha_innodb.cc index 5c73d36d9bc..b5962526d9e 100644 --- a/sql/ha_innodb.cc +++ b/sql/ha_innodb.cc @@ -1263,7 +1263,13 @@ ha_innobase::open( The column is the row id in the automatical generation case, 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; |