mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Merge branch '11.4' into 11.5
This commit is contained in:
@@ -64,7 +64,7 @@ SET sql_mode=@mode;
|
||||
# Test litteral concat
|
||||
#
|
||||
SELECT 'a' 'b';
|
||||
a
|
||||
ab
|
||||
ab
|
||||
SELECT 'a' '';
|
||||
a
|
||||
@@ -76,13 +76,13 @@ SELECT '' '';
|
||||
NULL
|
||||
NULL
|
||||
SELECT '' 'b' 'c';
|
||||
b
|
||||
bc
|
||||
bc
|
||||
SELECT '' '' 'c';
|
||||
c
|
||||
c
|
||||
SELECT 'a' '' 'c';
|
||||
a
|
||||
ac
|
||||
ac
|
||||
SELECT 'a' '' '';
|
||||
a
|
||||
|
||||
@@ -33,37 +33,37 @@ ERROR 42000: Incorrect parameter count in the call to native function 'WITHIN(PO
|
||||
# MDEV-20009 Add CAST(expr AS pluggable_type)
|
||||
#
|
||||
SELECT CAST(1 AS GEOMETRY);
|
||||
ERROR HY000: Operator does not exists: 'CAST(expr AS geometry)'
|
||||
ERROR HY000: Operator does not exist: 'CAST(expr AS geometry)'
|
||||
SELECT CAST(1 AS GEOMETRYCOLLECTION);
|
||||
ERROR HY000: Operator does not exists: 'CAST(expr AS geometrycollection)'
|
||||
ERROR HY000: Operator does not exist: 'CAST(expr AS geometrycollection)'
|
||||
SELECT CAST(1 AS POINT);
|
||||
ERROR HY000: Operator does not exists: 'CAST(expr AS point)'
|
||||
ERROR HY000: Operator does not exist: 'CAST(expr AS point)'
|
||||
SELECT CAST(1 AS LINESTRING);
|
||||
ERROR HY000: Operator does not exists: 'CAST(expr AS linestring)'
|
||||
ERROR HY000: Operator does not exist: 'CAST(expr AS linestring)'
|
||||
SELECT CAST(1 AS POLYGON);
|
||||
ERROR HY000: Operator does not exists: 'CAST(expr AS polygon)'
|
||||
ERROR HY000: Operator does not exist: 'CAST(expr AS polygon)'
|
||||
SELECT CAST(1 AS MULTIPOINT);
|
||||
ERROR HY000: Operator does not exists: 'CAST(expr AS multipoint)'
|
||||
ERROR HY000: Operator does not exist: 'CAST(expr AS multipoint)'
|
||||
SELECT CAST(1 AS MULTILINESTRING);
|
||||
ERROR HY000: Operator does not exists: 'CAST(expr AS multilinestring)'
|
||||
ERROR HY000: Operator does not exist: 'CAST(expr AS multilinestring)'
|
||||
SELECT CAST(1 AS MULTIPOLYGON);
|
||||
ERROR HY000: Operator does not exists: 'CAST(expr AS multipolygon)'
|
||||
ERROR HY000: Operator does not exist: 'CAST(expr AS multipolygon)'
|
||||
SELECT CONVERT(1, GEOMETRY);
|
||||
ERROR HY000: Operator does not exists: 'CAST(expr AS geometry)'
|
||||
ERROR HY000: Operator does not exist: 'CAST(expr AS geometry)'
|
||||
SELECT CONVERT(1, GEOMETRYCOLLECTION);
|
||||
ERROR HY000: Operator does not exists: 'CAST(expr AS geometrycollection)'
|
||||
ERROR HY000: Operator does not exist: 'CAST(expr AS geometrycollection)'
|
||||
SELECT CONVERT(1, POINT);
|
||||
ERROR HY000: Operator does not exists: 'CAST(expr AS point)'
|
||||
ERROR HY000: Operator does not exist: 'CAST(expr AS point)'
|
||||
SELECT CONVERT(1, LINESTRING);
|
||||
ERROR HY000: Operator does not exists: 'CAST(expr AS linestring)'
|
||||
ERROR HY000: Operator does not exist: 'CAST(expr AS linestring)'
|
||||
SELECT CONVERT(1, POLYGON);
|
||||
ERROR HY000: Operator does not exists: 'CAST(expr AS polygon)'
|
||||
ERROR HY000: Operator does not exist: 'CAST(expr AS polygon)'
|
||||
SELECT CONVERT(1, MULTIPOINT);
|
||||
ERROR HY000: Operator does not exists: 'CAST(expr AS multipoint)'
|
||||
ERROR HY000: Operator does not exist: 'CAST(expr AS multipoint)'
|
||||
SELECT CONVERT(1, MULTILINESTRING);
|
||||
ERROR HY000: Operator does not exists: 'CAST(expr AS multilinestring)'
|
||||
ERROR HY000: Operator does not exist: 'CAST(expr AS multilinestring)'
|
||||
SELECT CONVERT(1, MULTIPOLYGON);
|
||||
ERROR HY000: Operator does not exists: 'CAST(expr AS multipolygon)'
|
||||
ERROR HY000: Operator does not exist: 'CAST(expr AS multipolygon)'
|
||||
#
|
||||
# End of 10.5 tests
|
||||
#
|
||||
|
||||
@@ -24,6 +24,7 @@ b1 VARCHAR(64) AS (LPAD(b0,10)) PERSISTENT
|
||||
CREATE VIEW v2 AS SELECT
|
||||
LTRIM(now()) AS a0,
|
||||
LPAD(now(),10) AS b0;
|
||||
/*!999999\- enable the sandbox mode */
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
CREATE TABLE `t1` (
|
||||
|
||||
@@ -684,7 +684,7 @@ END;
|
||||
END;
|
||||
$$
|
||||
set @a = 4;
|
||||
INSERT INTO Persons SELECT 4, 'DDD', PKG2.func(@a);
|
||||
INSERT INTO Persons SELECT 4, 'DDD', pkg2.func(@a);
|
||||
SELECT * FROM Persons;
|
||||
ID Name Age
|
||||
1 AAA 10
|
||||
@@ -726,8 +726,8 @@ ID Name Age
|
||||
2 BBB 20
|
||||
3 CCC 30
|
||||
set @a = 0;
|
||||
INSERT INTO Persons SELECT 5, 'EEE', PKG2.func(@a);
|
||||
ERROR HY000: OUT or INOUT argument 1 for function PKG2.func is not allowed here
|
||||
INSERT INTO Persons SELECT 5, 'EEE', pkg2.func(@a);
|
||||
ERROR HY000: OUT or INOUT argument 1 for function pkg2.func is not allowed here
|
||||
DROP TABLE Persons;
|
||||
DROP PACKAGE pkg2;
|
||||
#
|
||||
@@ -764,7 +764,7 @@ ID Name Age
|
||||
3 CCC 30
|
||||
4 DDD 40
|
||||
set @a = 4;
|
||||
DELETE FROM Persons WHERE ID = PKG2.func(@a);
|
||||
DELETE FROM Persons WHERE ID = pkg2.func(@a);
|
||||
SELECT * FROM Persons;
|
||||
ID Name Age
|
||||
1 AAA 10
|
||||
@@ -807,8 +807,8 @@ ID Name Age
|
||||
3 CCC 30
|
||||
4 DDD 40
|
||||
set @a = 0;
|
||||
DELETE FROM Persons WHERE ID = PKG2.func(@a);
|
||||
ERROR HY000: OUT or INOUT argument 1 for function PKG2.func is not allowed here
|
||||
DELETE FROM Persons WHERE ID = pkg2.func(@a);
|
||||
ERROR HY000: OUT or INOUT argument 1 for function pkg2.func is not allowed here
|
||||
DROP TABLE Persons;
|
||||
DROP PACKAGE pkg2;
|
||||
#
|
||||
|
||||
@@ -34,6 +34,7 @@ PROCEDURE p1;
|
||||
FUNCTION f1 RETURN INT;
|
||||
END;
|
||||
$$
|
||||
/*!999999\- enable the sandbox mode */
|
||||
|
||||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
||||
|
||||
Reference in New Issue
Block a user