sql: clean-up on failed CREATE TABLE
In case statement "CREATE TABLE ..." fails it can left some records in system spaces that shouldn't be there. These records won't be left behind after this patch. @TarantoolBot document Title: Clean up after failure of CREATE TABLE Usually CREATE TABLE creates no less than two objects which are space and index. If creation of index (or any object after space) failed, created space (and other created objects) won't be deleted though operation failed. Now these objects will be deleted properly. Closes #3592
Showing
- src/box/sql/build.c 96 additions, 5 deletionssrc/box/sql/build.c
- src/box/sql/prepare.c 1 addition, 0 deletionssrc/box/sql/prepare.c
- src/box/sql/sqliteInt.h 5 additions, 0 deletionssrc/box/sql/sqliteInt.h
- src/box/sql/vdbe.c 13 additions, 9 deletionssrc/box/sql/vdbe.c
- test/sql/drop-table.result 151 additions, 0 deletionstest/sql/drop-table.result
- test/sql/drop-table.test.lua 85 additions, 0 deletionstest/sql/drop-table.test.lua
Loading
Please register or sign in to comment