mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 19:37:16 +02:00
MDEV-13965 Parameter data type control for Item_longlong_func
This commit is contained in:
parent
dc41bc14e0
commit
ca38b93e35
13 changed files with 266 additions and 0 deletions
37
mysql-test/r/func_int.result
Normal file
37
mysql-test/r/func_int.result
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
#
|
||||
# Start of 10.3 tests
|
||||
#
|
||||
#
|
||||
# MDEV-13965 Parameter data type control for Item_longlong_func
|
||||
#
|
||||
SELECT ROW(1,1) | 1;
|
||||
ERROR HY000: Illegal parameter data type row for operation '|'
|
||||
SELECT 1 | ROW(1,1);
|
||||
ERROR HY000: Illegal parameter data type row for operation '|'
|
||||
SELECT ROW(1,1) & 1;
|
||||
ERROR HY000: Illegal parameter data type row for operation '&'
|
||||
SELECT 1 & ROW(1,1);
|
||||
ERROR HY000: Illegal parameter data type row for operation '&'
|
||||
SELECT ROW(1,1) << 1;
|
||||
ERROR HY000: Illegal parameter data type row for operation '<<'
|
||||
SELECT 1 << ROW(1,1);
|
||||
ERROR HY000: Illegal parameter data type row for operation '<<'
|
||||
SELECT ROW(1,1) >> 1;
|
||||
ERROR HY000: Illegal parameter data type row for operation '>>'
|
||||
SELECT 1 >> ROW(1,1);
|
||||
ERROR HY000: Illegal parameter data type row for operation '>>'
|
||||
SELECT ~ROW(1,1);
|
||||
ERROR HY000: Illegal parameter data type row for operation '~'
|
||||
SELECT TO_SECONDS(ROW(1,1));
|
||||
ERROR HY000: Illegal parameter data type row for operation 'to_seconds'
|
||||
SELECT TIMESTAMPDIFF(SECOND,ROW(1,1), 1);
|
||||
ERROR HY000: Illegal parameter data type row for operation 'timestampdiff'
|
||||
SELECT TIMESTAMPDIFF(SECOND,1, ROW(1,1));
|
||||
ERROR HY000: Illegal parameter data type row for operation 'timestampdiff'
|
||||
SELECT INET_ATON(ROW(1,1));
|
||||
ERROR HY000: Illegal parameter data type row for operation 'inet_aton'
|
||||
SELECT LAST_INSERT_ID(ROW(1,1));
|
||||
ERROR HY000: Illegal parameter data type row for operation 'last_insert_id'
|
||||
#
|
||||
# End of 10.3 tests
|
||||
#
|
||||
|
|
@ -4755,5 +4755,36 @@ ERROR HY000: Illegal parameter data type row for operation 'radians'
|
|||
SELECT DEGREES(ROW(1,1));
|
||||
ERROR HY000: Illegal parameter data type row for operation 'degrees'
|
||||
#
|
||||
# MDEV-13965 Parameter data type control for Item_longlong_func
|
||||
#
|
||||
SELECT POINT(1,1) | 1;
|
||||
ERROR HY000: Illegal parameter data type geometry for operation '|'
|
||||
SELECT 1 | POINT(1,1);
|
||||
ERROR HY000: Illegal parameter data type geometry for operation '|'
|
||||
SELECT POINT(1,1) & 1;
|
||||
ERROR HY000: Illegal parameter data type geometry for operation '&'
|
||||
SELECT 1 & POINT(1,1);
|
||||
ERROR HY000: Illegal parameter data type geometry for operation '&'
|
||||
SELECT POINT(1,1) << 1;
|
||||
ERROR HY000: Illegal parameter data type geometry for operation '<<'
|
||||
SELECT 1 << POINT(1,1);
|
||||
ERROR HY000: Illegal parameter data type geometry for operation '<<'
|
||||
SELECT POINT(1,1) >> 1;
|
||||
ERROR HY000: Illegal parameter data type geometry for operation '>>'
|
||||
SELECT 1 >> POINT(1,1);
|
||||
ERROR HY000: Illegal parameter data type geometry for operation '>>'
|
||||
SELECT ~POINT(1,1);
|
||||
ERROR HY000: Illegal parameter data type geometry for operation '~'
|
||||
SELECT TO_SECONDS(POINT(1,1));
|
||||
ERROR HY000: Illegal parameter data type geometry for operation 'to_seconds'
|
||||
SELECT TIMESTAMPDIFF(SECOND,POINT(1,1), 1);
|
||||
ERROR HY000: Illegal parameter data type geometry for operation 'timestampdiff'
|
||||
SELECT TIMESTAMPDIFF(SECOND,1, POINT(1,1));
|
||||
ERROR HY000: Illegal parameter data type geometry for operation 'timestampdiff'
|
||||
SELECT INET_ATON(POINT(1,1));
|
||||
ERROR HY000: Illegal parameter data type geometry for operation 'inet_aton'
|
||||
SELECT LAST_INSERT_ID(POINT(1,1));
|
||||
ERROR HY000: Illegal parameter data type geometry for operation 'last_insert_id'
|
||||
#
|
||||
# End of 10.3 tests
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue