mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-8675 Different results of GIS functions on NULL vs NOT NULL columns
This commit is contained in:
@ -1816,3 +1816,15 @@ disjoint
|
||||
select ST_IsRing(NULL);
|
||||
ST_IsRing(NULL)
|
||||
-1
|
||||
#
|
||||
# MDEV-8675 Different results of GIS functions on NULL vs NOT NULL columns
|
||||
#
|
||||
CREATE TABLE t1 (g1 GEOMETRY NOT NULL,g2 GEOMETRY NULL);
|
||||
CREATE TABLE t2 AS SELECT WITHIN(g1,g1) as w1,WITHIN(g2,g2) AS w2 FROM t1;
|
||||
SHOW CREATE TABLE t2;
|
||||
Table Create Table
|
||||
t2 CREATE TABLE `t2` (
|
||||
`w1` int(1) DEFAULT NULL,
|
||||
`w2` int(1) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
DROP TABLE t1,t2;
|
||||
|
Reference in New Issue
Block a user