Tarantool development patches archive
 help / color / mirror / Atom feed
* [tarantool-patches] [PATCH v1 0/2] sql: clean-up in case constraint creation failed
@ 2019-06-25 15:31 imeevma
  2019-06-25 15:31 ` [tarantool-patches] [PATCH v1 1/2] sql: add OP_Error opcode in VDBE imeevma
  2019-06-25 15:31 ` [tarantool-patches] [PATCH v1 2/2] sql: clean-up in case constraint creation failed imeevma
  0 siblings, 2 replies; 5+ messages in thread
From: imeevma @ 2019-06-25 15:31 UTC (permalink / raw)
  To: korablev; +Cc: tarantool-patches

This patch makes VDBE run destructors before halting in case
constraint creation failed. This is done using new opcode
OP_Error, which allows to set an error and do a jump without
halting VDBE.

https://github.com/tarantool/tarantool/issues/4183
https://github.com/tarantool/tarantool/tree/imeevma/gh-4183-clean-up-when-constraint-creation-failed

Mergen Imeev (2):
  sql: add OP_Error opcode in VDBE
  sql: clean-up in case constraint creation failed

 src/box/sql/build.c      | 94 +++++++++++++++++++++++++++++-------------------
 src/box/sql/sqlInt.h     |  3 ++
 src/box/sql/vdbe.c       | 12 +++++++
 test/sql/checks.result   |  3 +-
 test/sql/checks.test.lua |  2 +-
 test/sql/clear.result    | 27 ++++++++++++++
 test/sql/clear.test.lua  | 11 ++++++
 7 files changed, 113 insertions(+), 39 deletions(-)

-- 
2.7.4

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-06-26 16:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-25 15:31 [tarantool-patches] [PATCH v1 0/2] sql: clean-up in case constraint creation failed imeevma
2019-06-25 15:31 ` [tarantool-patches] [PATCH v1 1/2] sql: add OP_Error opcode in VDBE imeevma
2019-06-26 16:11   ` [tarantool-patches] " n.pettik
2019-06-25 15:31 ` [tarantool-patches] [PATCH v1 2/2] sql: clean-up in case constraint creation failed imeevma
2019-06-26 16:11   ` [tarantool-patches] " n.pettik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox