Navigation Menu

Skip to content

Commit

Permalink
[test] add a test for dropping table has "-" in its name. refs #1165
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Nov 11, 2011
1 parent 958c8af commit 7637b6f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
12 changes: 5 additions & 7 deletions test/sql/suite/groonga_storage/r/drop_table.result
@@ -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`;
12 changes: 5 additions & 7 deletions test/sql/suite/groonga_storage/t/drop_table.test
Expand Up @@ -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

0 comments on commit 7637b6f

Please sign in to comment.