[tarantool-patches] [PATCH 0/4] Fixes in SQL involving no-pk or no-format spaces

Nikita Pettik korablev at tarantool.org
Fri Mar 29 21:24:20 MSK 2019


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





More information about the Tarantool-patches mailing list