sql: throw error on creation of too many indexes
Prior to this patch, there was no error of creating too many indexes in SQL. This led to a situation where indexes with IDs greater than BOX_INDEX_MAX were not created, but no error was thrown. For example, in the case of CREATE TABLE, only indexes with an ID less than BOX_INDEX_MAX were created. Now an error is thrown when creating too many indexes. Closes #5526 NO_DOC=bugfix (cherry picked from commit 2705e227)
Showing
- changelogs/unreleased/gh-5526-no-error-on-too-many-indexes.md 3 additions, 0 deletions...gelogs/unreleased/gh-5526-no-error-on-too-many-indexes.md
- src/box/sql/build.c 3 additions, 1 deletionsrc/box/sql/build.c
- test/sql-luatest/gh_5526_no_error_on_too_many_indexes_test.lua 27 additions, 0 deletions...sql-luatest/gh_5526_no_error_on_too_many_indexes_test.lua
Loading
Please register or sign in to comment