Tarantool development patches archive
 help / color / mirror / Atom feed
From: Chris Sosnin <k.sosnin@tarantool.org>
To: tarantool-patches@dev.tarantool.org, v.shpilevoy@tarantool.org,
	korablev@tarantool.org
Subject: [Tarantool-patches] [PATCH 0/2] sql: revoke table privileges on drop
Date: Wed, 18 Dec 2019 14:00:57 +0300	[thread overview]
Message-ID: <cover.1576666151.git.k.sosnin@tarantool.org> (raw)
In-Reply-To: <de9b91f5-8029-bc1a-51b4-a36b8627637b@tarantool.org>

Hi! Thank you for the review and for your fixes!

> +box.schema.user.drop('test_user1')
> +---
> +...
> +box.schema.user.drop('test_user2')
> +---
> +...
> +box.space._sequence:select{}
> +---
> +- []
> +...

I moved sequence tests to the second commit, firstly, because here you
don't do seq:drop() (I believe because after my initial patch sequences
are getting deleted anyways, but after yours seq remains in _sequence
space) and, secondly, because this way we can better isolate these two patches
from each other.

I agree with the rest, especially with your catch about sequences.
Thus, I'm sending this patchset to Nikita.

branch: https://github.com/tarantool/tarantool/tree/ksosnin/gh-4546-sql-drop-grants
issue: https://github.com/tarantool/tarantool/issues/4546

Chris Sosnin (2):
  sql: remove grants associated with the table
  sql: drop only generated sequence in DROP TABLE

 src/box/sql/build.c                       | 81 +++++++++++++++++++----
 src/box/user.cc                           |  7 ++
 src/box/user.h                            |  4 ++
 test/sql/autoincrement.result             | 80 ++++++++++++++++++++++
 test/sql/autoincrement.test.lua           | 33 +++++++++
 test/sql/gh-4546-sql-drop-grants.result   | 54 +++++++++++++++
 test/sql/gh-4546-sql-drop-grants.test.lua | 24 +++++++
 7 files changed, 269 insertions(+), 14 deletions(-)
 create mode 100644 test/sql/autoincrement.result
 create mode 100644 test/sql/autoincrement.test.lua
 create mode 100644 test/sql/gh-4546-sql-drop-grants.result
 create mode 100644 test/sql/gh-4546-sql-drop-grants.test.lua

-- 
2.21.0 (Apple Git-122.2)

  parent reply	other threads:[~2019-12-18 11:01 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-06 12:53 [Tarantool-patches] [PATCH] sql: remove grants associated with the table Chris Sosnin
2019-12-07 10:29 ` Chris Sosnin
2019-12-10 23:45 ` Vladislav Shpilevoy
2019-12-11  9:50   ` Chris Sosnin
2019-12-17 23:13     ` Vladislav Shpilevoy
2019-12-17 23:13       ` Vladislav Shpilevoy
2019-12-18 11:00       ` Chris Sosnin [this message]
2019-12-18 11:00         ` [Tarantool-patches] [PATCH 1/2] " Chris Sosnin
2019-12-24  1:37           ` Nikita Pettik
2019-12-24 16:47             ` Vladislav Shpilevoy
2019-12-18 11:00         ` [Tarantool-patches] [PATCH 2/2] sql: drop only generated sequence in DROP TABLE Chris Sosnin
2019-12-24  1:23           ` Nikita Pettik
2019-12-24 16:26             ` Vladislav Shpilevoy
2019-12-24 23:19               ` Nikita Pettik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1576666151.git.k.sosnin@tarantool.org \
    --to=k.sosnin@tarantool.org \
    --cc=korablev@tarantool.org \
    --cc=tarantool-patches@dev.tarantool.org \
    --cc=v.shpilevoy@tarantool.org \
    --subject='Re: [Tarantool-patches] [PATCH 0/2] sql: revoke table privileges on drop' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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