Skip to content
Snippets Groups Projects
Commit 50036331 authored by Mergen Imeev's avatar Mergen Imeev Committed by Vladimir Davydov
Browse files

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
parent da8b1f9a
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment