ha_innobase.cc:
Better error message to help users who created tables with < 3.23.54 where MySQL implicitly added a PRIMARY KEY definition sql/ha_innobase.cc: Better error message to help users who created tables with < 3.23.54 where MySQL implicitly added a PRIMARY KEY definition
This commit is contained in:
parent
7a896f3695
commit
05ef8a612a
@ -1030,7 +1030,14 @@ how you can resolve the problem.\n",
|
||||
if (primary_key != MAX_KEY) {
|
||||
fprintf(stderr,
|
||||
"InnoDB: Error: table %s has no primary key in InnoDB\n"
|
||||
"InnoDB: data dictionary, but has one in MySQL!\n", name);
|
||||
"InnoDB: data dictionary, but has one in MySQL!\n"
|
||||
"InnoDB: If you created the table with a MySQL\n"
|
||||
"InnoDB: version < 3.23.54 and did not define a primary\n"
|
||||
"InnoDB: key, but defined a unique key with all non-NULL\n"
|
||||
"InnoDB: columns, then MySQL internally treats that key\n"
|
||||
"InnoDB: as the primary key. You can fix this error by\n"
|
||||
"InnoDB: dump + DROP + CREATE + reimport of the table.\n",
|
||||
name);
|
||||
}
|
||||
|
||||
((row_prebuilt_t*)innobase_prebuilt)
|
||||
|
Loading…
x
Reference in New Issue
Block a user