sql: don't update SQL string during renaming
Since SQL string containing "CREATE TABLE ..." statement is not used anymore for ordinary tables/space, it makes no sense to modify it during renaming. Hence, now rename routine needs only to update name in _space, so it can be done using simple update operation. Moreover, now we are able to rename spaces created from Lua-land. Part of #2647
Showing
- src/box/sql.c 28 additions, 161 deletionssrc/box/sql.c
- src/box/sql/alter.c 0 additions, 72 deletionssrc/box/sql/alter.c
- src/box/sql/sqliteInt.h 0 additions, 1 deletionsrc/box/sql/sqliteInt.h
- src/box/sql/tarantoolInt.h 3 additions, 26 deletionssrc/box/sql/tarantoolInt.h
- src/box/sql/vdbe.c 1 addition, 3 deletionssrc/box/sql/vdbe.c
- test/sql-tap/alter.test.lua 29 additions, 3 deletionstest/sql-tap/alter.test.lua
Loading
Please register or sign in to comment