Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
0ccb7c37
Commit
0ccb7c37
authored
Mar 18, 2003
by
ram@mysql.r18.ru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Should use GeometryFromWKB().
parent
031ac2a7
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
206 additions
and
311 deletions
+206
-311
mysql-test/r/gis-rtree.result
mysql-test/r/gis-rtree.result
+202
-304
mysql-test/t/gis-rtree.test
mysql-test/t/gis-rtree.test
+4
-7
No files found.
mysql-test/r/gis-rtree.result
View file @
0ccb7c37
This diff is collapsed.
Click to expand it.
mysql-test/t/gis-rtree.test
View file @
0ccb7c37
...
...
@@ -23,10 +23,8 @@ while ($1)
}
SELECT
count
(
*
)
FROM
t1
;
EXPLAIN
SELECT
fid
,
AsText
(
g
)
FROM
t1
WHERE
Within
(
g
,
GeomFromText
(
'Polygon((140 140,160 140,160 160,140 160,140 140))'
));
SELECT
fid
,
AsText
(
g
)
FROM
t1
WHERE
Within
(
g
,
GeomFromText
(
'Polygon((140 140,160 140,160 160,140 160,140 140))'
));
EXPLAIN
SELECT
fid
,
AsText
(
g
)
FROM
t1
WHERE
Within
(
g
,
GeomFromText
(
'Polygon((140 140,160 140,160 160,140 160,140 140))'
));
SELECT
fid
,
AsText
(
g
)
FROM
t1
WHERE
Within
(
g
,
GeomFromText
(
'Polygon((140 140,160 140,160 160,140 160,140 140))'
));
DROP
TABLE
t1
;
...
...
@@ -41,8 +39,7 @@ while ($1)
let
$
2
=
10
;
while
(
$
2
)
{
eval
INSERT
INTO
t2
(
g
)
VALUES
(
LineString
(
Point
(
$
1
*
10
-
9
,
$
2
*
10
-
9
),
Point
(
$
1
*
10
,
$
2
*
10
)));
eval
INSERT
INTO
t2
(
g
)
VALUES
(
GeometryFromWKB
(
LineString
(
Point
(
$
1
*
10
-
9
,
$
2
*
10
-
9
),
Point
(
$
1
*
10
,
$
2
*
10
))));
dec
$
2
;
}
dec
$
1
;
...
...
@@ -62,7 +59,7 @@ while ($1)
let
$
2
=
10
;
while
(
$
2
)
{
eval
DELETE
FROM
t2
WHERE
Within
(
g
,
Envelope
(
LineString
(
Point
(
$
1
*
10
-
9
,
$
2
*
10
-
9
),
Point
(
$
1
*
10
,
$
2
*
10
))));
eval
DELETE
FROM
t2
WHERE
Within
(
g
,
Envelope
(
GeometryFromWKB
(
LineString
(
Point
(
$
1
*
10
-
9
,
$
2
*
10
-
9
),
Point
(
$
1
*
10
,
$
2
*
10
)
))));
SELECT
count
(
*
)
FROM
t2
;
dec
$
2
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment