[Groonga-mysql-commit] mroonga/mroonga [master] [test] add a test for dropping table has "-" in its name. refs #1165

Back to archive index

null+****@clear***** null+****@clear*****
2011年 11月 11日 (金) 17:45:06 JST


Kouhei Sutou	2011-11-11 08:45:06 +0000 (Fri, 11 Nov 2011)

  New Revision: 7637b6f0f59ce4556b8bbfb648fafbf3792781c5

  Log:
    [test] add a test for dropping table has "-" in its name. refs #1165

  Modified files:
    test/sql/suite/groonga_storage/r/drop_table.result
    test/sql/suite/groonga_storage/t/drop_table.test

  Modified: test/sql/suite/groonga_storage/r/drop_table.result (+5 -7)
===================================================================
--- test/sql/suite/groonga_storage/r/drop_table.result    2011-11-11 08:07:09 +0000 (bd664e9)
+++ test/sql/suite/groonga_storage/r/drop_table.result    2011-11-11 08:45:06 +0000 (9989676)
@@ -1,7 +1,5 @@
-drop table if exists t1, t2, t3;
-create table t1 (c1 int primary key, c2 int, c3 int);
-create table t2 (c1 int primary key, c2 int, c3 int);
-create table t3 (c1 int primary key, c2 int, c3 int);
-drop table t1;
-drop table t2;
-drop table t3;
+drop table if exists alphabet, `with-hyphen`;
+create table alphabet (c1 int primary key, c2 int, c3 int);
+drop table alphabet;
+create table `with-hyphen` (c1 int primary key, c2 int, c3 int);
+drop table `with-hyphen`;

  Modified: test/sql/suite/groonga_storage/t/drop_table.test (+5 -7)
===================================================================
--- test/sql/suite/groonga_storage/t/drop_table.test    2011-11-11 08:07:09 +0000 (82e2080)
+++ test/sql/suite/groonga_storage/t/drop_table.test    2011-11-11 08:45:06 +0000 (266d65a)
@@ -17,15 +17,13 @@
 --source include/have_groonga.inc
 
 --disable_warnings
-drop table if exists t1, t2, t3;
+drop table if exists alphabet, `with-hyphen`;
 --enable_warnings
 
-create table t1 (c1 int primary key, c2 int, c3 int);
-create table t2 (c1 int primary key, c2 int, c3 int);
-create table t3 (c1 int primary key, c2 int, c3 int);
+create table alphabet (c1 int primary key, c2 int, c3 int);
+drop table alphabet;
 
-drop table t1;
-drop table t2;
-drop table t3;
+create table `with-hyphen` (c1 int primary key, c2 int, c3 int);
+drop table `with-hyphen`;
 
 --source include/have_groonga_deinit.inc




Groonga-mysql-commit メーリングリストの案内
Back to archive index