sql: remove unnecessary checks
This patch removes some unnecessary checks that should have been removed in the 'sql: refactor memory allocation system' patch. Also, this patch removes the unnecessary check that the return value of space_by_id() is NULL in sql_check_create(). Return values is not NULL because sql_check_create() can be called in two cases: 1) space was just created, and space_id is its ID; 1) space_id was obtained directly from the space that existed at the time the VDBE was created. Part of tarantool/security#120 NO_DOC=refactoring NO_TEST=refactoring NO_CHANGELOG=refactoring
Showing
- src/box/sql.c 1 addition, 8 deletionssrc/box/sql.c
- src/box/sql/delete.c 0 additions, 4 deletionssrc/box/sql/delete.c
- src/box/sql/expr.c 0 additions, 6 deletionssrc/box/sql/expr.c
- src/box/sql/insert.c 0 additions, 6 deletionssrc/box/sql/insert.c
- src/box/sql/parse.y 1 addition, 1 deletionsrc/box/sql/parse.y
- src/box/sql/select.c 0 additions, 14 deletionssrc/box/sql/select.c
- src/box/sql/update.c 0 additions, 4 deletionssrc/box/sql/update.c
- src/box/sql/where.c 5 additions, 11 deletionssrc/box/sql/where.c
- src/box/sql/wherecode.c 0 additions, 4 deletionssrc/box/sql/wherecode.c
Loading
Please register or sign in to comment