Skip to content
Snippets Groups Projects
Commit 41ca410c authored by Nikita Pettik's avatar Nikita Pettik
Browse files

sql: fail of DROP TABLE doesn't lead to truncate

Deletion of rows from table (which is part of DROP TABLE procedure) is
wrapped in transaction now. If any Foreign Key violations occur, then
rollback transaction and halt execution of statement. Otherwise, commit
changes and continue DROP TABLE routine. This logic is implemented by
OP_FkCheckCommit opcode.
Added tests for this case.

Closes #2953
parent 2d38c663
No related branches found
No related tags found
No related merge requests found
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