mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MDEV-19908 Add class Type_collection
This commit is contained in:
@ -73,15 +73,21 @@ SET SESSION debug_dbug="-d,Item_func_in";
|
||||
|
||||
SET debug_dbug='+d,num_op';
|
||||
|
||||
# (GEOMETRY,GEOMETRY) gives GEOMETRY for all operators
|
||||
CREATE TABLE t1 AS SELECT
|
||||
POINT(0,0)+POINT(0,0),
|
||||
POINT(0,0)-POINT(0,0),
|
||||
POINT(0,0)*POINT(0,0),
|
||||
POINT(0,0)/POINT(0,0),
|
||||
POINT(0,0) MOD POINT(0,0) LIMIT 0;
|
||||
SHOW CREATE TABLE t1;
|
||||
DROP TABLE t1;
|
||||
# (GEOMETRY,GEOMETRY) goes through
|
||||
# Type_collection_geometry::aggregate_for_num_op() which fails.
|
||||
# Type pairs from Type_handler_data::m_type_aggregator_xxx are not even tested,
|
||||
# as both sides are from the same type collection.
|
||||
|
||||
--error ER_ILLEGAL_PARAMETER_DATA_TYPES2_FOR_OPERATION
|
||||
SELECT POINT(0,0)+POINT(0,0);
|
||||
--error ER_ILLEGAL_PARAMETER_DATA_TYPES2_FOR_OPERATION
|
||||
SELECT POINT(0,0)-POINT(0,0);
|
||||
--error ER_ILLEGAL_PARAMETER_DATA_TYPES2_FOR_OPERATION
|
||||
SELECT POINT(0,0)*POINT(0,0);
|
||||
--error ER_ILLEGAL_PARAMETER_DATA_TYPES2_FOR_OPERATION
|
||||
SELECT POINT(0,0)/POINT(0,0);
|
||||
--error ER_ILLEGAL_PARAMETER_DATA_TYPES2_FOR_OPERATION
|
||||
SELECT POINT(0,0) MOD POINT(0,0);
|
||||
|
||||
# (GEOMETRY,VARCHAR) gives GEOMETRY for all operators
|
||||
CREATE TABLE t1 AS SELECT
|
||||
|
Reference in New Issue
Block a user