Tarantool development patches archive
 help / color / mirror / Atom feed
From: "n.pettik" <korablev@tarantool.org>
To: tarantool-patches@freelists.org
Cc: Vladislav Shpilevoy <v.shpilevoy@tarantool.org>
Subject: [tarantool-patches] Re: [PATCH] sql: remove support of partial indexes from parser
Date: Mon, 2 Jul 2018 18:51:56 +0300	[thread overview]
Message-ID: <5F9DC699-08EE-4C3B-9491-114772B589B7@tarantool.org> (raw)
In-Reply-To: <eb75a0d0-d34c-21b3-7c8a-58abccad381e@tarantool.org>


> 1. The error is caused by typo in the request, not by lack of
> partial indexes.

Forgot to place ‘;’ at the end of statement:

@@ -291,14 +291,16 @@ test:do_eqp_test(
         -- </index7-6.4>
     })
 
+-- gh-2165 Currently, Tarantool lacks support of partial indexes,
+-- so temporary we removed processing of their syntax from parser.
+--
 test:do_catchsql_test(
-    "index7-6.5",
+    "index7-7.1",
     [[
-        CREATE INDEX t5a ON t5(a) WHERE a=#1;
+        CREATE TABLE t1 (a INTEGER PRIMARY KEY, b INTEGER);
+        CREATE UNIQUE INDEX i ON t1 (a) WHERE a = 3;
     ]], {
-        -- <index7-6.5>
-        1, [[near "#1": syntax error]]
-        -- </index7-6.5>
+        1, "keyword \"WHERE\" is reserved"

  reply	other threads:[~2018-07-02 15:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-02 11:08 [tarantool-patches] " Nikita Pettik
2018-07-02 13:50 ` [tarantool-patches] " Vladislav Shpilevoy
2018-07-02 15:51   ` n.pettik [this message]
2018-07-02 18:30     ` Vladislav Shpilevoy
2018-07-03  8:24 ` 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=5F9DC699-08EE-4C3B-9491-114772B589B7@tarantool.org \
    --to=korablev@tarantool.org \
    --cc=tarantool-patches@freelists.org \
    --cc=v.shpilevoy@tarantool.org \
    --subject='[tarantool-patches] Re: [PATCH] sql: remove support of partial indexes from parser' \
    /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