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
75925f8f
Commit
75925f8f
authored
Nov 06, 2016
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix: Item_func_spatial_collection::print()
parent
75fb3213
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
4 deletions
+20
-4
mysql-test/r/gis.result
mysql-test/r/gis.result
+9
-1
mysql-test/suite/innodb_gis/r/1.result
mysql-test/suite/innodb_gis/r/1.result
+1
-1
mysql-test/suite/innodb_gis/r/gis.result
mysql-test/suite/innodb_gis/r/gis.result
+1
-1
mysql-test/t/gis.test
mysql-test/t/gis.test
+8
-0
sql/item_geofunc.h
sql/item_geofunc.h
+1
-1
No files found.
mysql-test/r/gis.result
View file @
75925f8f
...
@@ -488,7 +488,7 @@ explain extended select issimple(MultiPoint(Point(3, 6), Point(4, 10))), issimpl
...
@@ -488,7 +488,7 @@ explain extended select issimple(MultiPoint(Point(3, 6), Point(4, 10))), issimpl
id select_type table type possible_keys key key_len ref rows filtered Extra
id select_type table type possible_keys key key_len ref rows filtered Extra
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
Warnings:
Warnings:
Note 1003 select st_issimple(
st_multipoint
(point(3,6),point(4,10))) AS `issimple(MultiPoint(Point(3, 6), Point(4, 10)))`,st_issimple(point(3,6)) AS `issimple(Point(3, 6))`
Note 1003 select st_issimple(
geometrycollection
(point(3,6),point(4,10))) AS `issimple(MultiPoint(Point(3, 6), Point(4, 10)))`,st_issimple(point(3,6)) AS `issimple(Point(3, 6))`
create table t1 (a geometry not null);
create table t1 (a geometry not null);
insert into t1 values (GeomFromText('Point(1 2)'));
insert into t1 values (GeomFromText('Point(1 2)'));
insert into t1 values ('Garbage');
insert into t1 values ('Garbage');
...
@@ -1832,6 +1832,14 @@ DROP TABLE t1,t2;
...
@@ -1832,6 +1832,14 @@ DROP TABLE t1,t2;
#
#
# Start of 10.2 tests
# Start of 10.2 tests
#
#
create view v1 as select AsWKT(GeometryCollection(Point(44, 6), LineString(Point(3, 6), Point(7, 9))));
show create view v1;
View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select st_astext(geometrycollection(point(44,6),geometrycollection(point(3,6),point(7,9)))) AS `Name_exp_1` latin1 latin1_swedish_ci
select * from v1;
Name_exp_1
GEOMETRYCOLLECTION(POINT(44 6),GEOMETRYCOLLECTION(POINT(3 6),POINT(7 9)))
drop view v1;
#
#
# MDEV-10134 Add full support for DEFAULT
# MDEV-10134 Add full support for DEFAULT
#
#
...
...
mysql-test/suite/innodb_gis/r/1.result
View file @
75925f8f
...
@@ -458,7 +458,7 @@ explain extended select ST_issimple(MultiPoint(Point(3, 6), Point(4, 10))), ST_i
...
@@ -458,7 +458,7 @@ explain extended select ST_issimple(MultiPoint(Point(3, 6), Point(4, 10))), ST_i
id select_type table type possible_keys key key_len ref rows filtered Extra
id select_type table type possible_keys key key_len ref rows filtered Extra
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
Warnings:
Warnings:
Note 1003 select st_issimple(
st_multipoint
(point(3,6),point(4,10))) AS `ST_issimple(MultiPoint(Point(3, 6), Point(4, 10)))`,st_issimple(point(3,6)) AS `ST_issimple(Point(3, 6))`
Note 1003 select st_issimple(
geometrycollection
(point(3,6),point(4,10))) AS `ST_issimple(MultiPoint(Point(3, 6), Point(4, 10)))`,st_issimple(point(3,6)) AS `ST_issimple(Point(3, 6))`
create table t1 (a geometry not null);
create table t1 (a geometry not null);
insert into t1 values (ST_GeomFromText('Point(1 2)'));
insert into t1 values (ST_GeomFromText('Point(1 2)'));
insert into t1 values ('Garbage');
insert into t1 values ('Garbage');
...
...
mysql-test/suite/innodb_gis/r/gis.result
View file @
75925f8f
...
@@ -458,7 +458,7 @@ explain extended select ST_issimple(MultiPoint(Point(3, 6), Point(4, 10))), ST_i
...
@@ -458,7 +458,7 @@ explain extended select ST_issimple(MultiPoint(Point(3, 6), Point(4, 10))), ST_i
id select_type table type possible_keys key key_len ref rows filtered Extra
id select_type table type possible_keys key key_len ref rows filtered Extra
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
Warnings:
Warnings:
Note 1003 select st_issimple(
st_multipoint
(point(3,6),point(4,10))) AS `ST_issimple(MultiPoint(Point(3, 6), Point(4, 10)))`,st_issimple(point(3,6)) AS `ST_issimple(Point(3, 6))`
Note 1003 select st_issimple(
geometrycollection
(point(3,6),point(4,10))) AS `ST_issimple(MultiPoint(Point(3, 6), Point(4, 10)))`,st_issimple(point(3,6)) AS `ST_issimple(Point(3, 6))`
create table t1 (a geometry not null);
create table t1 (a geometry not null);
insert into t1 values (ST_GeomFromText('Point(1 2)'));
insert into t1 values (ST_GeomFromText('Point(1 2)'));
insert into t1 values ('Garbage');
insert into t1 values ('Garbage');
...
...
mysql-test/t/gis.test
View file @
75925f8f
...
@@ -1530,6 +1530,14 @@ DROP TABLE t1,t2;
...
@@ -1530,6 +1530,14 @@ DROP TABLE t1,t2;
--
echo
# Start of 10.2 tests
--
echo
# Start of 10.2 tests
--
echo
#
--
echo
#
#
# Item_func_spatial_collection::print()
#
create
view
v1
as
select
AsWKT
(
GeometryCollection
(
Point
(
44
,
6
),
LineString
(
Point
(
3
,
6
),
Point
(
7
,
9
))));
show
create
view
v1
;
select
*
from
v1
;
drop
view
v1
;
--
echo
#
--
echo
#
--
echo
# MDEV-10134 Add full support for DEFAULT
--
echo
# MDEV-10134 Add full support for DEFAULT
--
echo
#
--
echo
#
...
...
sql/item_geofunc.h
View file @
75925f8f
...
@@ -291,7 +291,7 @@ class Item_func_spatial_collection: public Item_geometry_func
...
@@ -291,7 +291,7 @@ class Item_func_spatial_collection: public Item_geometry_func
}
}
}
}
const
char
*
func_name
()
const
{
return
"
st_multipoint
"
;
}
const
char
*
func_name
()
const
{
return
"
geometrycollection
"
;
}
Item
*
get_copy
(
THD
*
thd
,
MEM_ROOT
*
mem_root
)
Item
*
get_copy
(
THD
*
thd
,
MEM_ROOT
*
mem_root
)
{
return
get_item_copy
<
Item_func_spatial_collection
>
(
thd
,
mem_root
,
this
);
}
{
return
get_item_copy
<
Item_func_spatial_collection
>
(
thd
,
mem_root
,
this
);
}
};
};
...
...
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