@@ -4817,5 +4817,106 @@ ERROR HY000: Illegal parameter data type geometry for operation 'convert_tz'
4817
4817
SELECT CONVERT_TZ(1, 1, POINT(1,1));
4818
4818
ERROR HY000: Illegal parameter data type geometry for operation 'convert_tz'
4819
4819
#
4820
+ # MDEV-13967 Parameter data type control for Item_long_func
4821
+ #
4822
+ SELECT STRCMP(POINT(1,1),POINT(1,1));
4823
+ STRCMP(POINT(1,1),POINT(1,1))
4824
+ 0
4825
+ SELECT CHAR_LENGTH(POINT(1,1));
4826
+ CHAR_LENGTH(POINT(1,1))
4827
+ 25
4828
+ SELECT OCTET_LENGTH(POINT(1,1));
4829
+ OCTET_LENGTH(POINT(1,1))
4830
+ 25
4831
+ SELECT UNCOMPRESSED_LENGTH(POINT(1,1));
4832
+ UNCOMPRESSED_LENGTH(POINT(1,1))
4833
+ 0
4834
+ SELECT COERCIBILITY(POINT(1,1));
4835
+ COERCIBILITY(POINT(1,1))
4836
+ 4
4837
+ SELECT ASCII(POINT(1,1));
4838
+ ASCII(POINT(1,1))
4839
+ 0
4840
+ SELECT CRC32(POINT(1,1));
4841
+ CRC32(POINT(1,1))
4842
+ 1349318989
4843
+ SELECT ORD(POINT(1,1));
4844
+ ORD(POINT(1,1))
4845
+ 0
4846
+ SELECT SIGN(POINT(1,1));
4847
+ ERROR HY000: Illegal parameter data type geometry for operation 'sign'
4848
+ SELECT LOCATE('a','a',POINT(1,1));
4849
+ ERROR HY000: Illegal parameter data type geometry for operation 'locate'
4850
+ SELECT LOCATE(POINT(1,1),POINT(1,1));
4851
+ LOCATE(POINT(1,1),POINT(1,1))
4852
+ 1
4853
+ SELECT BIT_COUNT(POINT(1,1));
4854
+ ERROR HY000: Illegal parameter data type geometry for operation 'bit_count'
4855
+ SELECT BENCHMARK(POINT(1,1),'');
4856
+ ERROR HY000: Illegal parameter data type geometry for operation 'benchmark'
4857
+ SELECT SLEEP(POINT(1,1));
4858
+ ERROR HY000: Illegal parameter data type geometry for operation 'sleep'
4859
+ SELECT GET_LOCK('x', POINT(1,1));
4860
+ ERROR HY000: Illegal parameter data type geometry for operation 'get_lock'
4861
+ SELECT PERIOD_ADD(POINT(1,1),1);
4862
+ ERROR HY000: Illegal parameter data type geometry for operation 'period_add'
4863
+ SELECT PERIOD_ADD(1,POINT(1,1));
4864
+ ERROR HY000: Illegal parameter data type geometry for operation 'period_add'
4865
+ SELECT PERIOD_DIFF(POINT(1,1),1);
4866
+ ERROR HY000: Illegal parameter data type geometry for operation 'period_diff'
4867
+ SELECT PERIOD_DIFF(1,POINT(1,1));
4868
+ ERROR HY000: Illegal parameter data type geometry for operation 'period_diff'
4869
+ SELECT TO_DAYS(POINT(1,1));
4870
+ ERROR HY000: Illegal parameter data type geometry for operation 'to_days'
4871
+ SELECT DAYOFMONTH(POINT(1,1));
4872
+ ERROR HY000: Illegal parameter data type geometry for operation 'dayofmonth'
4873
+ SELECT DAYOFYEAR(POINT(1,1));
4874
+ ERROR HY000: Illegal parameter data type geometry for operation 'dayofyear'
4875
+ SELECT QUARTER(POINT(1,1));
4876
+ ERROR HY000: Illegal parameter data type geometry for operation 'quarter'
4877
+ SELECT YEAR(POINT(1,1));
4878
+ ERROR HY000: Illegal parameter data type geometry for operation 'year'
4879
+ SELECT YEARWEEK(POINT(1,1));
4880
+ ERROR HY000: Illegal parameter data type geometry for operation 'yearweek'
4881
+ SELECT WEEK(POINT(1,1));
4882
+ ERROR HY000: Illegal parameter data type geometry for operation 'week'
4883
+ SELECT WEEK(POINT(1,1),1);
4884
+ ERROR HY000: Illegal parameter data type geometry for operation 'week'
4885
+ SELECT WEEK(1,POINT(1,1));
4886
+ ERROR HY000: Illegal parameter data type geometry for operation 'week'
4887
+ SELECT HOUR(POINT(1,1));
4888
+ ERROR HY000: Illegal parameter data type geometry for operation 'hour'
4889
+ SELECT MINUTE(POINT(1,1));
4890
+ ERROR HY000: Illegal parameter data type geometry for operation 'minute'
4891
+ SELECT SECOND(POINT(1,1));
4892
+ ERROR HY000: Illegal parameter data type geometry for operation 'second'
4893
+ SELECT MICROSECOND(POINT(1,1));
4894
+ ERROR HY000: Illegal parameter data type geometry for operation 'microsecond'
4895
+ SELECT JSON_DEPTH(POINT(1,1));
4896
+ ERROR HY000: Illegal parameter data type geometry for operation 'json_depth'
4897
+ SELECT JSON_LENGTH(POINT(1,1));
4898
+ ERROR HY000: Illegal parameter data type geometry for operation 'json_length'
4899
+ SELECT JSON_LENGTH('json', POINT(1,1));
4900
+ ERROR HY000: Illegal parameter data type geometry for operation 'json_length'
4901
+ SELECT JSON_LENGTH(POINT(1,1), POINT(1,1));
4902
+ ERROR HY000: Illegal parameter data type geometry for operation 'json_length'
4903
+ SELECT REGEXP_INSTR(POINT(1,1),'');
4904
+ REGEXP_INSTR(POINT(1,1),'')
4905
+ 1
4906
+ SELECT REGEXP_INSTR('',POINT(1,1));
4907
+ ERROR HY000: Illegal parameter data type geometry for operation 'regexp_instr'
4908
+ SELECT FIND_IN_SET(POINT(1,1),'');
4909
+ FIND_IN_SET(POINT(1,1),'')
4910
+ 0
4911
+ SELECT FIND_IN_SET('',POINT(1,1));
4912
+ FIND_IN_SET('',POINT(1,1))
4913
+ 0
4914
+ SELECT RELEASE_LOCK(POINT(1,1));
4915
+ ERROR HY000: Illegal parameter data type geometry for operation 'release_lock'
4916
+ SELECT IS_FREE_LOCK(POINT(1,1));
4917
+ ERROR HY000: Illegal parameter data type geometry for operation 'is_free_lock'
4918
+ SELECT IS_USED_LOCK(POINT(1,1));
4919
+ ERROR HY000: Illegal parameter data type geometry for operation 'is_used_lock'
4920
+ #
4820
4921
# End of 10.3 tests
4821
4922
#
0 commit comments