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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
9d71f851
Commit
9d71f851
authored
Aug 24, 2004
by
bell@sanja.is.com.ua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
subselect test split on two tests because gis extention can be absent
parent
95a51bca
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
13 deletions
+23
-13
mysql-test/r/subselect.result
mysql-test/r/subselect.result
+0
-5
mysql-test/r/subselect_gis.result
mysql-test/r/subselect_gis.result
+8
-0
mysql-test/t/subselect.test
mysql-test/t/subselect.test
+0
-8
mysql-test/t/subselect_gis.test
mysql-test/t/subselect_gis.test
+15
-0
No files found.
mysql-test/r/subselect.result
View file @
9d71f851
...
@@ -1251,11 +1251,6 @@ a b
...
@@ -1251,11 +1251,6 @@ a b
2 NULL
2 NULL
3 1
3 1
drop table t1, t2;
drop table t1, t2;
create table t1(City VARCHAR(30),Location geometry);
insert into t1 values("Paris",GeomFromText('POINT(2.33 48.87)'));
select City from t1 where (select intersects(GeomFromText(AsText(Location)),GeomFromText('Polygon((2 50, 2.5 50, 2.5 47, 2 47, 2 50))'))=0);
City
drop table t1;
CREATE TABLE `t1` (
CREATE TABLE `t1` (
`id` mediumint(8) unsigned NOT NULL auto_increment,
`id` mediumint(8) unsigned NOT NULL auto_increment,
`pseudo` varchar(35) NOT NULL default '',
`pseudo` varchar(35) NOT NULL default '',
...
...
mysql-test/r/subselect_gis.result
0 → 100644
View file @
9d71f851
drop table if exists t1;
create table t1(City VARCHAR(30),Location geometry);
insert into t1 values("Paris",GeomFromText('POINT(2.33 48.87)'));
select City from t1 where (select
intersects(GeomFromText(AsText(Location)),GeomFromText('Polygon((2 50, 2.5
50, 2.5 47, 2 47, 2 50))'))=0);
City
drop table t1;
mysql-test/t/subselect.test
View file @
9d71f851
...
@@ -758,14 +758,6 @@ select * from t1;
...
@@ -758,14 +758,6 @@ select * from t1;
drop
table
t1
,
t2
;
drop
table
t1
,
t2
;
#
# correct behavoiur for function from reduced subselect
#
create
table
t1
(
City
VARCHAR
(
30
),
Location
geometry
);
insert
into
t1
values
(
"Paris"
,
GeomFromText
(
'POINT(2.33 48.87)'
));
select
City
from
t1
where
(
select
intersects
(
GeomFromText
(
AsText
(
Location
)),
GeomFromText
(
'Polygon((2 50, 2.5 50, 2.5 47, 2 47, 2 50))'
))
=
0
);
drop
table
t1
;
#
#
# reduced subselect in ORDER BY & GROUP BY clauses
# reduced subselect in ORDER BY & GROUP BY clauses
#
#
...
...
mysql-test/t/subselect_gis.test
0 → 100644
View file @
9d71f851
--
source
include
/
have_geometry
.
inc
--
disable_warnings
drop
table
if
exists
t1
;
--
enable_warnings
#
# correct behavoiur for function from reduced subselect
#
create
table
t1
(
City
VARCHAR
(
30
),
Location
geometry
);
insert
into
t1
values
(
"Paris"
,
GeomFromText
(
'POINT(2.33 48.87)'
));
select
City
from
t1
where
(
select
intersects
(
GeomFromText
(
AsText
(
Location
)),
GeomFromText
(
'Polygon((2 50, 2.5
50, 2.5 47, 2 47, 2 50))'
))
=
0
);
drop
table
t1
;
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