1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-20809 EXTRACT from INET6 value does not produce any warnings

Disallowing EXTRACT(xxx FROM inet6arg) as fix time.
Adding a new method Type_handler::can_return_extract_source().
This commit is contained in:
Alexander Barkov
2020-06-01 10:35:01 +04:00
parent f67522ede6
commit 35cbbd4d70
10 changed files with 90 additions and 0 deletions

View File

@ -314,3 +314,21 @@ SELECT (1,null) NOT IN ((2,2),(3,3)), (1,null) NOT IN ((2,2)), (1,null) NOT IN (
--echo #
--echo # End of 10.1 tests
--echo #
--echo #
--echo # Start of 10.5 tests
--echo #
--echo #
--echo # MDEV-20809 EXTRACT from INET6 value does not produce any warnings
--echo #
CREATE TABLE t1 (a GEOMETRY);
--error ER_ILLEGAL_PARAMETER_DATA_TYPE_FOR_OPERATION
SELECT EXTRACT(DAY FROM a) FROM t1;
DROP TABLE t1;
--echo #
--echo # End of 10.5 tests
--echo #