Tarantool development patches archive
 help / color / mirror / Atom feed
From: "n.pettik" <korablev@tarantool.org>
To: tarantool-patches@freelists.org
Cc: Kirill Shcherbatov <kshcherbatov@tarantool.org>
Subject: [tarantool-patches] Re: [PATCH v1 1/1] sql: fix segfault with check referencing new table
Date: Mon, 6 Aug 2018 19:29:49 +0300	[thread overview]
Message-ID: <EE38FFAE-B9EE-4FA2-89EB-C17D6422137E@tarantool.org> (raw)
In-Reply-To: <9caa1c4097e37c7d2eed85d6d52ac3af724ccf34.1533571088.git.kshcherbatov@tarantool.org>


> Starting with 9a54320 on tuple insertion in _space we

Starting from.

> make sql_checks_resolve_space_def_reference for checks

Not make, but execute I guess. 

> if any. During executing on_replace_dd_space trigger
> box_space_id_by_name that takes a look to _space space
> returnes not-nullable value, but the same time space

Typos: at the same time, returns, non-nullable
(but I guess not-null is likely to be more suitable).

> object doesn't present in space chache and could not be

Typos: isn't presented, cache, can’t be found by. 

> found with space_by_id.
> Before 1.10 path 0ecabde merged to 2.0 as a part of 13df2b1

Typo: patch, was merged.

> box_space_id_by_name returned BOX_ID_NIL because of

Used to return, due to.

> "multi-engine transaction error" that is not rased in same

Typo: is not raised.

> situation now.
> 
> diff --git a/test/sql/checks.test.lua b/test/sql/checks.test.lua
> index 7ff78fe..bbd6747 100644
> --- a/test/sql/checks.test.lua
> +++ b/test/sql/checks.test.lua
> @@ -43,4 +43,8 @@ format = {{name = 'X', type = 'unsigned'}}
> t = {513, 1, 'test', 'memtx', 0, opts, format}
> s = box.space._space:insert(t)
> 
> +

It would be better if you put reference to issue here
(sort of gh-xxxx: short description).

> +box.sql.execute("CREATE TABLE w2 (s1 INT PRIMARY KEY, CHECK ((SELECT COUNT(*) FROM w2) = 0));")
> +box.sql.execute("DROP TABLE w2;")
> +
> test_run:cmd("clear filter")
> -- 

  reply	other threads:[~2018-08-06 16:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-06 15:58 [tarantool-patches] " Kirill Shcherbatov
2018-08-06 16:29 ` n.pettik [this message]
2018-08-07  7:22   ` [tarantool-patches] " Kirill Shcherbatov
2018-08-07 12:41     ` n.pettik
2018-08-07 17:39 ` Kirill Yukhin

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=EE38FFAE-B9EE-4FA2-89EB-C17D6422137E@tarantool.org \
    --to=korablev@tarantool.org \
    --cc=kshcherbatov@tarantool.org \
    --cc=tarantool-patches@freelists.org \
    --subject='[tarantool-patches] Re: [PATCH v1 1/1] sql: fix segfault with check referencing new table' \
    /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