[tarantool-patches] Re: [PATCH v2] sql: ban of REINDEX syntax

Alexander Turenko alexander.turenko at tarantool.org
Wed Apr 4 15:54:26 MSK 2018


Hi, Ivan!

The commit is LGTM. Nikita, can you look into this?

Notes for future contributions: please, place comments like brach/issue
*under* --- mark. Also it would be good to include changelog since first
proposed version into v2 message (also under --- mark).

WBR, Alexander Turenko.

On Wed, Apr 04, 2018 at 03:30:32PM +0300, Ivan Ilyin wrote:
> From: vanyail <vanyail at yandex.ru>
> 
> This change removes REINDEX from keywords and also disables tests
> which were using this syntax.
> 
> This patch affects only parser, REINDEX implementation still exists,
> because it is planned to be fixed and enabled in the scope of #3195.
> 
> Note that REINDEX keyword is still in '%fallback' directive in
> 'parse.y'. Reserved keywords included there to avoid situation when
> a keyword has no usages within 'parse.y' file.
> 
> Fixes #2174
> branch: https://github.com/tarantool/tarantool/tree/gh-2174-ban-reindex-syntax
> issue: https://github.com/tarantool/tarantool/issues/2174
> ---
>  src/box/sql/parse.c                              | 1797 +++++++++++-----------
>  src/box/sql/parse.y                              |   18 +-
>  test/sql-tap/gh-2174-ban-reindex-syntax.test.lua |   29 +
>  test/sql-tap/gh2130-index-refer-table.test.lua   |   23 +-
>  test/sql-tap/misc3.test.lua                      |   73 +-
>  test/sql-tap/suite.ini                           |    2 +
>  6 files changed, 980 insertions(+), 962 deletions(-)
>  create mode 100755 test/sql-tap/gh-2174-ban-reindex-syntax.test.lua
> 
> ...




More information about the Tarantool-patches mailing list