mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MDEV-19923 Add type handlers for geometry sub-types
This commit is contained in:
@ -357,15 +357,15 @@ SET SESSION debug_dbug="-d,Item_func_in";
|
||||
#
|
||||
SET debug_dbug='+d,num_op';
|
||||
SELECT POINT(0,0)+POINT(0,0);
|
||||
ERROR HY000: Illegal parameter data types geometry and geometry for operation '+'
|
||||
ERROR HY000: Illegal parameter data types point and point for operation '+'
|
||||
SELECT POINT(0,0)-POINT(0,0);
|
||||
ERROR HY000: Illegal parameter data types geometry and geometry for operation '-'
|
||||
ERROR HY000: Illegal parameter data types point and point for operation '-'
|
||||
SELECT POINT(0,0)*POINT(0,0);
|
||||
ERROR HY000: Illegal parameter data types geometry and geometry for operation '*'
|
||||
ERROR HY000: Illegal parameter data types point and point for operation '*'
|
||||
SELECT POINT(0,0)/POINT(0,0);
|
||||
ERROR HY000: Illegal parameter data types geometry and geometry for operation '/'
|
||||
ERROR HY000: Illegal parameter data types point and point for operation '/'
|
||||
SELECT POINT(0,0) MOD POINT(0,0);
|
||||
ERROR HY000: Illegal parameter data types geometry and geometry for operation 'MOD'
|
||||
ERROR HY000: Illegal parameter data types point and point for operation 'MOD'
|
||||
CREATE TABLE t1 AS SELECT
|
||||
POINT(0,0)+'0',
|
||||
POINT(0,0)-'0',
|
||||
@ -393,11 +393,11 @@ t1 CREATE TABLE `t1` (
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 AS SELECT '0'-POINT(0,0) LIMIT 0;
|
||||
ERROR HY000: Illegal parameter data types varchar and geometry for operation '-'
|
||||
ERROR HY000: Illegal parameter data types varchar and point for operation '-'
|
||||
CREATE TABLE t1 AS SELECT '0'/POINT(0,0) LIMIT 0;
|
||||
ERROR HY000: Illegal parameter data types varchar and geometry for operation '/'
|
||||
ERROR HY000: Illegal parameter data types varchar and point for operation '/'
|
||||
CREATE TABLE t1 AS SELECT '0' MOD POINT(0,0) LIMIT 0;
|
||||
ERROR HY000: Illegal parameter data types varchar and geometry for operation 'MOD'
|
||||
ERROR HY000: Illegal parameter data types varchar and point for operation 'MOD'
|
||||
SET debug_dbug='-d,num_op';
|
||||
#
|
||||
# End of 10.3 tests
|
||||
@ -418,9 +418,9 @@ Warnings:
|
||||
Note 1105 DBUG: [0] arg=1 handler=0 (row)
|
||||
Note 1105 DBUG: [1] arg=2 handler=0 (row)
|
||||
Note 1105 DBUG: ROW(3 args) level=0
|
||||
Note 1105 DBUG: [0,0] handler=geometry
|
||||
Note 1105 DBUG: [0,1] handler=geometry
|
||||
Note 1105 DBUG: [0,2] handler=geometry
|
||||
Note 1105 DBUG: [0,0] handler=point
|
||||
Note 1105 DBUG: [0,1] handler=point
|
||||
Note 1105 DBUG: [0,2] handler=point
|
||||
Note 1105 DBUG: => handler=geometry
|
||||
Note 1105 DBUG: [1,0] handler=int
|
||||
Note 1105 DBUG: [1,1] handler=int
|
||||
@ -443,9 +443,9 @@ Note 1105 DBUG: [1,1] handler=row
|
||||
Note 1105 DBUG: [1,2] handler=row
|
||||
Note 1105 DBUG: => handler=row
|
||||
Note 1105 DBUG: ROW(3 args) level=1
|
||||
Note 1105 DBUG: [0,0] handler=geometry
|
||||
Note 1105 DBUG: [0,1] handler=geometry
|
||||
Note 1105 DBUG: [0,2] handler=geometry
|
||||
Note 1105 DBUG: [0,0] handler=point
|
||||
Note 1105 DBUG: [0,1] handler=point
|
||||
Note 1105 DBUG: [0,2] handler=point
|
||||
Note 1105 DBUG: => handler=geometry
|
||||
Note 1105 DBUG: [1,0] handler=int
|
||||
Note 1105 DBUG: [1,1] handler=int
|
||||
@ -453,18 +453,18 @@ Note 1105 DBUG: [1,2] handler=int
|
||||
Note 1105 DBUG: => handler=bigint
|
||||
Note 1105 DBUG: types_compatible=yes bisect=no
|
||||
SELECT (1,0) IN ((POINT(1,1),0),(0,0));
|
||||
ERROR HY000: Illegal parameter data types int and geometry for operation 'in'
|
||||
ERROR HY000: Illegal parameter data types int and point for operation 'in'
|
||||
SHOW WARNINGS;
|
||||
Level Code Message
|
||||
Note 1105 DBUG: [0] arg=1 handler=0 (row)
|
||||
Note 1105 DBUG: [1] arg=2 handler=0 (row)
|
||||
Note 1105 DBUG: ROW(3 args) level=0
|
||||
Note 1105 DBUG: [0,0] handler=int
|
||||
Note 1105 DBUG: [0,1] handler=geometry
|
||||
Note 1105 DBUG: [0,1] handler=point
|
||||
Note 1105 DBUG: [0,2] handler=int
|
||||
Error 4078 Illegal parameter data types int and geometry for operation 'in'
|
||||
Error 4078 Illegal parameter data types int and point for operation 'in'
|
||||
SELECT (1,(0,0)) IN ((1,(POINT(1,1),0)),(0,(0,0)));
|
||||
ERROR HY000: Illegal parameter data types int and geometry for operation 'in'
|
||||
ERROR HY000: Illegal parameter data types int and point for operation 'in'
|
||||
SHOW WARNINGS;
|
||||
Level Code Message
|
||||
Note 1105 DBUG: [0] arg=1 handler=0 (row)
|
||||
@ -480,9 +480,9 @@ Note 1105 DBUG: [1,2] handler=row
|
||||
Note 1105 DBUG: => handler=row
|
||||
Note 1105 DBUG: ROW(3 args) level=1
|
||||
Note 1105 DBUG: [0,0] handler=int
|
||||
Note 1105 DBUG: [0,1] handler=geometry
|
||||
Note 1105 DBUG: [0,1] handler=point
|
||||
Note 1105 DBUG: [0,2] handler=int
|
||||
Error 4078 Illegal parameter data types int and geometry for operation 'in'
|
||||
Error 4078 Illegal parameter data types int and point for operation 'in'
|
||||
SET SESSION debug_dbug="-d,Predicant_to_list_comparator";
|
||||
SET SESSION debug_dbug="-d,Item_func_in";
|
||||
SET SESSION debug_dbug="-d,cmp_item";
|
||||
|
Reference in New Issue
Block a user