mirror of
https://github.com/MariaDB/server.git
synced 2025-09-02 09:41:40 +03:00
Bug fix for alter table and auto_increment
This commit is contained in:
@@ -1452,7 +1452,7 @@ NdbDictInterface::createOrAlterTable(Ndb & ndb,
|
||||
alterTable(&tSignal, ptr)
|
||||
: createTable(&tSignal, ptr);
|
||||
|
||||
if (haveAutoIncrement) {
|
||||
if (!alter && haveAutoIncrement) {
|
||||
// if (!ndb.setAutoIncrementValue(impl.m_internalName.c_str(), autoIncrementValue)) {
|
||||
if (!ndb.setAutoIncrementValue(impl.m_externalName.c_str(), autoIncrementValue)) {
|
||||
m_error.code = 4336;
|
||||
|
Reference in New Issue
Block a user