Bug #5703 | Alter table failure with strange error message | ||
---|---|---|---|
Submitted: | 22 Sep 2004 14:53 | Modified: | 28 Sep 2004 13:08 |
Reporter: | Tomas Ulin | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Cluster: Cluster (NDB) storage engine | Severity: | S2 (Serious) |
Version: | 4.1.5 source | OS: | Linux (linux 2.6) |
Assigned to: | Martin Skold | CPU Architecture: | Any |
[22 Sep 2004 14:53]
Tomas Ulin
[26 Sep 2004 9:37]
Martin Skold
This seems to be several bugs. The one related to alter table directly is a general bug. When tables are copied as part of alter table the NO_AUTO_VALUE_ON_ZERO always have to be set. After the table copy is finished the SQL_MODE should be set to whatever it was before. This bug gives incorrect behaviour (duplicate key error) in InnoDB as well. Another problem occurs after this bug has been and seems to be related to coordinating local table caches for Ndb API and Ndb DICT in different connections. This is hopefully fixed in a pending patch from Magnus.
[28 Sep 2004 13:07]
Martin Skold
Pushed a fix for the above problem in 4.1_ndb and the problem is now gone.
[28 Sep 2004 13:08]
Martin Skold
Added test case in ndb_alter_table