diff --git a/src/box/alter.cc b/src/box/alter.cc index 6556d7f81f1b7443e7772ccd616207cd0f298024..bcd2a1b544bf871a61de34112ef8a6fd633ff001 100644 --- a/src/box/alter.cc +++ b/src/box/alter.cc @@ -428,13 +428,6 @@ index_def_new_from_tuple(struct tuple *tuple, struct space *space) return NULL; index_def_set_func(index_def, func); } - if (index_def->iid == 0 && space->sequence != NULL) - if (index_def_check_sequence(index_def, space->sequence_fieldno, - space->sequence_path, - space->sequence_path != NULL ? - strlen(space->sequence_path) : 0, - space_name(space)) != 0) - return NULL; index_def_guard.is_active = false; return index_def; } diff --git a/test/box/sequence.result b/test/box/sequence.result index 71f23edb3e4161b9cae4181c8ed82e93146f165c..b49540983a97f6232f2d9896bd7aab302ff92ff3 100644 --- a/test/box/sequence.result +++ b/test/box/sequence.result @@ -774,11 +774,6 @@ pk:alter{parts = {1, 'string'}} -- error - error: 'Can''t create or modify index ''pk'' in space ''test'': sequence cannot be used with a non-integer key' ... -box.space._index:update({s.id, pk.id}, {{'=', 6, {{0, 'string'}}}}) -- error ---- -- error: 'Can''t create or modify index ''pk'' in space ''test'': sequence cannot - be used with a non-integer key' -... box.space._index:delete{s.id, pk.id} -- error --- - error: 'Can''t modify space ''test'': can not drop primary key while space sequence diff --git a/test/box/sequence.test.lua b/test/box/sequence.test.lua index 5a56b74e9fa507e749231977fa5a4c993b9e2938..21a56f5b460e7bc05c52d15fd5d9515aa958d549 100644 --- a/test/box/sequence.test.lua +++ b/test/box/sequence.test.lua @@ -248,7 +248,6 @@ pk:drop() pk = s:create_index('pk', {parts = {1, 'unsigned'}, sequence = 'test'}) -- ok pk:alter{parts = {1, 'string'}} -- error -box.space._index:update({s.id, pk.id}, {{'=', 6, {{0, 'string'}}}}) -- error box.space._index:delete{s.id, pk.id} -- error pk:alter{parts = {1, 'string'}, sequence = false} -- ok sk = s:create_index('sk', {parts = {2, 'unsigned'}})