From: Roman Khabibov <roman.habibov@tarantool.org> To: tarantool-patches@freelists.org Cc: v.shpilevoy@tarantool.org Subject: [tarantool-patches] [PATCH 0/2] sql: allow <COLLATE> only for string-like args Date: Wed, 8 May 2019 14:29:14 +0300 [thread overview] Message-ID: <cover.1557312975.git.roman.habibov@tarantool.org> (raw) This patchset disallows use of <COLLATE> clause with non-string-like argumennts, that can be litherals, table columns, expressions with different operators or compound subquiries. During the work on this issue I found strange behaviour: node with explicit collation in the certain kind of query (more in the patch) was duplicated as left node. I think, that it is a bug, so I have fixed that. Roman Khabibov (2): sql: fix collation node duplication in AST sql: allow <COLLATE> only for string-like args src/box/sql/expr.c | 16 +++++++++ src/box/sql/resolve.c | 2 +- test/sql-tap/collation.test.lua | 50 ++++++++++++++++++++++++++- test/sql-tap/distinct.test.lua | 8 ++--- test/sql-tap/e_select1.test.lua | 2 +- test/sql-tap/identifier_case.test.lua | 2 +- test/sql-tap/resolver01.test.lua | 12 +++---- test/sql-tap/select1.test.lua | 2 +- test/sql-tap/selectE.test.lua | 15 +++----- test/sql-tap/with1.test.lua | 2 +- 10 files changed, 85 insertions(+), 26 deletions(-) -- Issue: https://github.com/tarantool/tarantool/issues/3804 Branch: https://github.com/tarantool/tarantool/tree/romanhabibov/gh-3804-collate 2.20.1 (Apple Git-117)
next reply other threads:[~2019-05-08 11:29 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-05-08 11:29 Roman Khabibov [this message] 2019-05-08 11:29 ` [tarantool-patches] [PATCH 1/2] sql: fix collation node duplication in AST Roman Khabibov 2019-05-12 16:32 ` [tarantool-patches] " Vladislav Shpilevoy 2019-05-28 14:10 ` Roman Khabibov 2019-06-02 17:09 ` Vladislav Shpilevoy 2019-06-04 14:00 ` Roman Khabibov 2019-05-08 11:29 ` [tarantool-patches] [PATCH 2/2] sql: allow <COLLATE> only for string-like args Roman Khabibov 2019-05-12 16:32 ` [tarantool-patches] " Vladislav Shpilevoy 2019-05-28 14:08 ` Roman Khabibov 2019-06-02 17:09 ` Vladislav Shpilevoy 2019-06-04 14:27 ` Roman Khabibov 2019-06-04 19:49 ` Vladislav Shpilevoy 2019-06-07 15:01 ` Roman Khabibov 2019-06-09 16:55 ` Vladislav Shpilevoy
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.1557312975.git.roman.habibov@tarantool.org \ --to=roman.habibov@tarantool.org \ --cc=tarantool-patches@freelists.org \ --cc=v.shpilevoy@tarantool.org \ --subject='Re: [tarantool-patches] [PATCH 0/2] sql: allow <COLLATE> only for string-like args' \ /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