Tarantool development patches archive
 help / color / mirror / Atom feed
From: roman.habibov1@yandex.ru
To: "n.pettik" <korablev@tarantool.org>,
	"tarantool-patches@freelists.org"
	<tarantool-patches@freelists.org>
Subject: [tarantool-patches] Re: [PATCH v1 1/1] sql: Tests for CREATE TEMP TABLE and  CREATE TEMPORARY TABLE
Date: Wed, 09 May 2018 20:20:35 +0300	[thread overview]
Message-ID: <6369401525886435@web18j.yandex.ru> (raw)
In-Reply-To: <225ED31B-14F7-4BF1-9383-2100722DFEF2@tarantool.org>


> Please, read guidelines carefully.
>
>> sql: Tests for CREATE TEMP TABLE and CREATE TEMPORARY TABLE
>
> According to our docs:
> — 2. Try to limit the subject line to 50 characters or so.
> — 3. Start the subject line with a capital letter unless it prefixed with a subsystem name and semicolon…
Sorry. I fixed that.

> Also, it is not clear what have you done with these ’tests’: removed/fixed/added etc.
That too.

>> +
>> +-- gh-2166 Tables with TEMP and TEMPORARY were removed before.
>> +
>
> Leading space at the last line. Enable showing whitespaces to avoid such codestyle violations.
>> + })
>> +test:do_catchsql_test(
>> + "temporary",
>
>> + 1, "near \"TEMPORARY\": syntax error"
>> + -- <temporary>
>> + })
>> test:do_execsql2_test(
That too.

> Separate tests with blank line.
diff --git a/test/sql-tap/table.test.lua b/test/sql-tap/table.test.lua
index 70b22d2..84eb884 100755
--- a/test/sql-tap/table.test.lua
+++ b/test/sql-tap/table.test.lua
@@ -623,6 +623,7 @@ test:do_catchsql_test(
 	1, "near \"TEMP\": syntax error"
 	-- <temp>
 	})
+
 test:do_catchsql_test(
 	"temporary",
 	[[
@@ -632,6 +633,7 @@ test:do_catchsql_test(
 	1, "near \"TEMPORARY\": syntax error"
 	-- <temporary>
 	})
+
 test:do_execsql2_test(
     "table-8.6",
     [[

> I would also add tests (or just rewrite yours) which check that complete CREATE TABLE statement doesn’t support TEMP clause:
>
> CREATE TEMP TABLE t1(…);
>
> CREATE TEMPORARY TABLE t1(…);
diff --git a/test/sql-tap/table.test.lua b/test/sql-tap/table.test.lua
index c71e4b9..70b22d2 100755
--- a/test/sql-tap/table.test.lua
+++ b/test/sql-tap/table.test.lua
@@ -613,11 +613,11 @@ test:do_execsql2_test(
 -- } {cnt 1 max(b+c) 5}
 
 -- gh-2166 Tables with TEMP and TEMPORARY were removed before.
-	
+
 test:do_catchsql_test(
 	"temp",
 	[[
-		CREATE TEMP TABLE
+		CREATE TEMP TABLE t1();
 	]], {
 	-- <temp>
 	1, "near \"TEMP\": syntax error"
@@ -626,7 +626,7 @@ test:do_catchsql_test(
 test:do_catchsql_test(
 	"temporary",
 	[[
-		CREATE TEMPORARY TABLE
+		CREATE TEMPORARY TABLE t1();
 	]], {
 	-- <temporary>
 	1, "near \"TEMPORARY\": syntax error"

  reply	other threads:[~2018-05-09 17:20 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-05 22:34 [tarantool-patches] [PATCH v1 1/1] " Roman Khabibov
2018-05-07 13:08 ` [tarantool-patches] " Vladislav Shpilevoy
2018-05-07 18:50   ` roman.habibov1
2018-05-07 23:12     ` Vladislav Shpilevoy
2018-05-07 23:30       ` roman.habibov1
2018-05-08  8:15         ` Vladislav Shpilevoy
2018-05-08 10:30 ` n.pettik
     [not found]   ` <2050311525824390@web59j.yandex.ru>
2018-05-09 14:30     ` [tarantool-patches] Re: [PATCH v1 1/1] sql: " n.pettik
2018-05-09 17:20       ` roman.habibov1 [this message]
2018-05-11 13:12         ` n.pettik
2018-05-11 15:18           ` [tarantool-patches] Re: [PATCH v1 1/1] sql: added tests for TEMP and TEMPORARY clauses roman.habibov1
2018-05-14 14:50             ` n.pettik
2018-05-18 23:44               ` roman.habibov1
2018-05-19  0:28                 ` n.pettik
2018-05-19 11:57                   ` 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=6369401525886435@web18j.yandex.ru \
    --to=roman.habibov1@yandex.ru \
    --cc=korablev@tarantool.org \
    --cc=tarantool-patches@freelists.org \
    --subject='[tarantool-patches] Re: [PATCH v1 1/1] sql: Tests for CREATE TEMP TABLE and  CREATE TEMPORARY 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