Navigation Menu

Skip to content

Commit

Permalink
[storage][test] add show create table.
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Sep 24, 2011
1 parent ca9cbe5 commit 851197f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
11 changes: 10 additions & 1 deletion test/sql/groonga_storage/r/geometry_contains.result
Expand Up @@ -3,8 +3,17 @@ create table shops (
id int primary key auto_increment,
name text,
location geometry NOT NULL,
SPATIAL KEY location_index (location)
spatial key location_index (location)
);
show create table shops;
Table Create Table
shops CREATE TABLE `shops` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` text,
`location` geometry NOT NULL,
PRIMARY KEY (`id`),
SPATIAL KEY `location_index` (`location`)
) ENGINE=groonga DEFAULT CHARSET=latin1
insert into shops (name, location)
values ('nezu-no-taiyaki',
GeomFromText('POINT(139.762573 35.720253)'));
Expand Down
3 changes: 2 additions & 1 deletion test/sql/groonga_storage/t/geometry_contains.test
Expand Up @@ -24,8 +24,9 @@ create table shops (
id int primary key auto_increment,
name text,
location geometry NOT NULL,
SPATIAL KEY location_index (location)
spatial key location_index (location)
);
show create table shops;
insert into shops (name, location)
values ('nezu-no-taiyaki',
GeomFromText('POINT(139.762573 35.720253)'));
Expand Down

0 comments on commit 851197f

Please sign in to comment.