Tarantool development patches archive
 help / color / mirror / Atom feed
* [tarantool-patches] [PATCH 0/4] Fixes in SQL involving no-pk or no-format spaces
@ 2019-03-29 18:24 Nikita Pettik
  2019-03-29 18:24 ` [tarantool-patches] [PATCH 1/4] Drop foreign keys before indexes in space:drop() Nikita Pettik
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Nikita Pettik @ 2019-03-29 18:24 UTC (permalink / raw)
  To: tarantool-patches; +Cc: v.shpilevoy, Nikita Pettik

Branch: https://github.com/tarantool/tarantool/tree/np/fix-no-index-no-format-DDL

This patch-set consists of several (almost independent) fixes of
bugs which can result in crashes. All of them are based on situation
when SQL appeals to spaces which lack format or indexes.

Nikita Pettik (4):
  Drop foreign keys before indexes in space:drop()
  Fix creation of FK constraint in case of no child's PK
  sql: disallow creation of index on space without format
  sql: disallow creation of FK referencing space without PK

 src/box/alter.cc                 |  2 +-
 src/box/lua/schema.lua           |  6 +++---
 src/box/sql/build.c              | 23 +++++++++++++++++++++-
 src/box/sql/delete.c             |  4 +---
 src/box/sql/sqlInt.h             | 12 ++++++++++++
 test/sql-tap/lua-tables.test.lua | 17 ++++++++++++++++-
 test/sql/foreign-keys.result     | 41 ++++++++++++++++++++++++++++++++++++++++
 test/sql/foreign-keys.test.lua   | 21 ++++++++++++++++++++
 8 files changed, 117 insertions(+), 9 deletions(-)

-- 
2.15.1

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

end of thread, other threads:[~2019-04-01 13:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-29 18:24 [tarantool-patches] [PATCH 0/4] Fixes in SQL involving no-pk or no-format spaces Nikita Pettik
2019-03-29 18:24 ` [tarantool-patches] [PATCH 1/4] Drop foreign keys before indexes in space:drop() Nikita Pettik
2019-03-29 18:24 ` [tarantool-patches] [PATCH 2/4] Fix creation of FK constraint in case of no child's PK Nikita Pettik
2019-04-01 13:41   ` [tarantool-patches] " Vladislav Shpilevoy
2019-03-29 18:24 ` [tarantool-patches] [PATCH 3/4] sql: disallow creation of index on space without format Nikita Pettik
2019-03-29 18:24 ` [tarantool-patches] [PATCH 4/4] sql: disallow creation of FK referencing space without PK Nikita Pettik

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