1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
-- source include/have_geometry.inc
SET sql_mode=ORACLE;
SELECT CONTAINS(POINT(1,1), POINT(1,1));
SELECT CONTAINS(POINT(1,1), POINT(0,0));
SELECT WITHIN(POINT(1,1), POINT(1,1));
SELECT WITHIN(POINT(1,1), POINT(0,0));
--echo #
--echo # Start of 10.5 tests
--echo #
--echo #
--echo # MDEV-19994 Add class Function_collection
--echo #
--error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
SELECT CONTAINS();
--error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
SELECT CONTAINS(POINT(1,1));
--error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
SELECT CONTAINS(POINT(1,1), POINT(1,1), POINT(1,1));
--error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
SELECT WITHIN();
--error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
SELECT WITHIN(POINT(1,1));
--error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
SELECT WITHIN(POINT(1,1), POINT(1,1), POINT(1,1));
--echo #
--echo # MDEV-20009 Add CAST(expr AS pluggable_type)
--echo #
--error ER_UNKNOWN_OPERATOR
SELECT CAST(1 AS GEOMETRY);
--error ER_UNKNOWN_OPERATOR
SELECT CAST(1 AS GEOMETRYCOLLECTION);
--error ER_UNKNOWN_OPERATOR
SELECT CAST(1 AS POINT);
--error ER_UNKNOWN_OPERATOR
SELECT CAST(1 AS LINESTRING);
--error ER_UNKNOWN_OPERATOR
SELECT CAST(1 AS POLYGON);
--error ER_UNKNOWN_OPERATOR
SELECT CAST(1 AS MULTIPOINT);
--error ER_UNKNOWN_OPERATOR
SELECT CAST(1 AS MULTILINESTRING);
--error ER_UNKNOWN_OPERATOR
SELECT CAST(1 AS MULTIPOLYGON);
--error ER_UNKNOWN_OPERATOR
SELECT CONVERT(1, GEOMETRY);
--error ER_UNKNOWN_OPERATOR
SELECT CONVERT(1, GEOMETRYCOLLECTION);
--error ER_UNKNOWN_OPERATOR
SELECT CONVERT(1, POINT);
--error ER_UNKNOWN_OPERATOR
SELECT CONVERT(1, LINESTRING);
--error ER_UNKNOWN_OPERATOR
SELECT CONVERT(1, POLYGON);
--error ER_UNKNOWN_OPERATOR
SELECT CONVERT(1, MULTIPOINT);
--error ER_UNKNOWN_OPERATOR
SELECT CONVERT(1, MULTILINESTRING);
--error ER_UNKNOWN_OPERATOR
SELECT CONVERT(1, MULTIPOLYGON);
--echo #
--echo # End of 10.5 tests
--echo #
|