From: Chris Sosnin <k.sosnin@tarantool.org>
To: Nikita Pettik <korablev@tarantool.org>
Cc: tarantool-patches@dev.tarantool.org
Subject: Re: [Tarantool-patches] [PATCH] sql: fix segfault in pragma table_info
Date: Thu, 30 Jan 2020 15:53:51 +0300 [thread overview]
Message-ID: <DAAF0227-B68B-447C-8F0A-A2F1E775F7AE@tarantool.org> (raw)
In-Reply-To: <20200130120412.GD16149@tarantool.org>
Hi! Thank you for the review!
> I'd add a bit of details:
>
> -- Make sure that 'pragma table_info()' correctly handles tables
> -- without primary key.
I agree, inserted your version.
>
>> +table_info = box.execute('pragma table_info("_vinyl_deferred_delete")')
>
> To ignore statement result as a rule we use underscore:
>
> _ = box.execute(…)
Fixed.
> Finally, personally I wouldn't focus on particular '_vinyl_deferred_delete'
> system space, but rather create casual space without pk and/or format and
> use it in the test. Then we could run it using both engines.
I rewrote tests, new diff:
+test_run = require('test_run').new()
+engine = test_run:get_cfg('engine')
+--
+-- Make sure that 'pragma table_info()' correctly handles tables
+-- without primary key.
+--
+T = box.schema.create_space('T', { \
+ engine = engine, \
+ format = {{'i', 'integer'}} \
+})
+_ = box.execute('pragma table_info(T)')
+T:drop()
next prev parent reply other threads:[~2020-01-30 12:53 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-27 14:04 Chris Sosnin
2020-01-28 0:24 ` Vladislav Shpilevoy
2020-01-30 12:04 ` Nikita Pettik
2020-01-30 12:53 ` Chris Sosnin [this message]
2020-02-05 22:22 ` Vladislav Shpilevoy
2020-02-06 17:59 ` 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=DAAF0227-B68B-447C-8F0A-A2F1E775F7AE@tarantool.org \
--to=k.sosnin@tarantool.org \
--cc=korablev@tarantool.org \
--cc=tarantool-patches@dev.tarantool.org \
--subject='Re: [Tarantool-patches] [PATCH] sql: fix segfault in pragma table_info' \
/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