Navigation Menu

Skip to content

Commit

Permalink
test: add ORDER BY to make resultset stable
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Oct 23, 2012
1 parent b43d6a4 commit ca3c36a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion test/sql/suite/mroonga/storage/alter_table/r/spatial.result
Expand Up @@ -114,7 +114,8 @@ VALUES ('hiiragi',
GeomFromText('POINT(139.711517 35.647701)'));
ALTER TABLE shops ADD SPATIAL KEY location_index (location);
SELECT id, name, AsText(location) AS location_text FROM shops
WHERE MBRContains(GeomFromText('LineString(139.7727 35.6684, 139.7038 35.7121)'), location);
WHERE MBRContains(GeomFromText('LineString(139.7727 35.6684, 139.7038 35.7121)'), location)
ORDER BY id;
id name location_text
14 tetsuji POINT(139.76857 35.680911944444446)
19 daruma POINT(139.7705988888889 35.68146111111111)
Expand Down
3 changes: 2 additions & 1 deletion test/sql/suite/mroonga/storage/alter_table/t/spatial.test
Expand Up @@ -140,7 +140,8 @@ INSERT INTO shops (name, location)
ALTER TABLE shops ADD SPATIAL KEY location_index (location);

SELECT id, name, AsText(location) AS location_text FROM shops
WHERE MBRContains(GeomFromText('LineString(139.7727 35.6684, 139.7038 35.7121)'), location);
WHERE MBRContains(GeomFromText('LineString(139.7727 35.6684, 139.7038 35.7121)'), location)
ORDER BY id;

SHOW CREATE TABLE shops;

Expand Down

0 comments on commit ca3c36a

Please sign in to comment.