Commit 62feb0c5 authored by Alexey Botchkov's avatar Alexey Botchkov

main.gis test fixed.

parent b385fdc6
...@@ -918,25 +918,25 @@ SELECT Overlaps(@horiz1, @point2) FROM DUAL; ...@@ -918,25 +918,25 @@ SELECT Overlaps(@horiz1, @point2) FROM DUAL;
Overlaps(@horiz1, @point2) Overlaps(@horiz1, @point2)
0 0
DROP TABLE t1; DROP TABLE t1;
create table t1(f1 geometry, f2 point, f3 linestring); create table t1(f1 geometry, f2 linestring, f3 linestring);
select f1 from t1 union select f1 from t1; select f1 from t1 union select f1 from t1;
f1 f1
insert into t1 (f2,f3) values (GeomFromText('POINT(1 1)'), insert into t1 (f2,f3) values (GeomFromText('LINESTRING(1 1, 2 2)'),
GeomFromText('LINESTRING(0 0,1 1,2 2)')); GeomFromText('LINESTRING(0 0,1 1,2 2)'));
select AsText(f2),AsText(f3) from t1; select AsText(f2),AsText(f3) from t1;
AsText(f2) AsText(f3) AsText(f2) AsText(f3)
POINT(1 1) LINESTRING(0 0,1 1,2 2) LINESTRING(1 1,2 2) LINESTRING(0 0,1 1,2 2)
select AsText(a) from (select f2 as a from t1 union select f3 from t1) t; select AsText(a) from (select f2 as a from t1 union select f3 from t1) t;
AsText(a) AsText(a)
POINT(1 1) LINESTRING(1 1,2 2)
LINESTRING(0 0,1 1,2 2) LINESTRING(0 0,1 1,2 2)
create table t2 as select f2 as a from t1 union select f3 from t1; create table t2 as select f2 as a from t1 union select f3 from t1;
desc t2; desc t2;
Field Type Null Key Default Extra Field Type Null Key Default Extra
a point YES NULL a linestring YES NULL
select AsText(a) from t2; select AsText(a) from t2;
AsText(a) AsText(a)
POINT(1 1) LINESTRING(1 1,2 2)
LINESTRING(0 0,1 1,2 2) LINESTRING(0 0,1 1,2 2)
drop table t1, t2; drop table t1, t2;
SELECT 1; SELECT 1;
......
...@@ -609,9 +609,9 @@ DROP TABLE t1; ...@@ -609,9 +609,9 @@ DROP TABLE t1;
# #
# Bug#28763: Selecting geometry fields in UNION caused server crash. # Bug#28763: Selecting geometry fields in UNION caused server crash.
# #
create table t1(f1 geometry, f2 point, f3 linestring); create table t1(f1 geometry, f2 linestring, f3 linestring);
select f1 from t1 union select f1 from t1; select f1 from t1 union select f1 from t1;
insert into t1 (f2,f3) values (GeomFromText('POINT(1 1)'), insert into t1 (f2,f3) values (GeomFromText('LINESTRING(1 1, 2 2)'),
GeomFromText('LINESTRING(0 0,1 1,2 2)')); GeomFromText('LINESTRING(0 0,1 1,2 2)'));
select AsText(f2),AsText(f3) from t1; select AsText(f2),AsText(f3) from t1;
select AsText(a) from (select f2 as a from t1 union select f3 from t1) t; select AsText(a) from (select f2 as a from t1 union select f3 from t1) t;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment