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

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Oct 4 10:54:21 JST 2012


Kouhei Sutou	2011-11-11 17:45:06 +0900 (Fri, 11 Nov 2011)

  New Revision: 7637b6f0f59ce4556b8bbfb648fafbf3792781c5
  https://github.com/mroonga/mroonga/commit/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 17:07:09 +0900 (bd664e9)
+++ test/sql/suite/groonga_storage/r/drop_table.result    2011-11-11 17:45:06 +0900 (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 17:07:09 +0900 (82e2080)
+++ test/sql/suite/groonga_storage/t/drop_table.test    2011-11-11 17:45:06 +0900 (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
-------------- next part --------------
HTML����������������������������...
下載 



More information about the Groonga-mysql-commit mailing list
Back to archive index