Details
-
Technical task
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
None
Description
The task MDEV-10914 implements the ROW data type for stored routine local variables and parameters.
This task will additionally allow to use ROW in stored function return data type.
DROP FUNCTION IF EXISTS f1; |
DELIMITER $$
|
CREATE FUNCTION f1(a INT, b VARCHAR(32)) RETURNS ROW(a INT, b VARCHAR(32)) |
BEGIN
|
RETURN ROW(a,b); |
END; |
$$
|
DELIMITER ;
|
SELECT f1(1,'b1') = ROW(1,'b1'); |
Anchored row data types should also be supported:
DROP FUNCTION IF EXISTS f1; |
DELIMITER $$
|
CREATE FUNCTION f1(a INT, b VARCHAR(32)) RETURNS ROW TYPE OF t1 |
BEGIN
|
RETURN ROW(a,b); |
END; |
$$
|
DELIMITER ;
|
SELECT f1(1,'b1') = ROW(1,'b1'); |
Attachments
Issue Links
- blocks
-
MDEV-12308 Accessing ROW type function fields
- Open
-
MDEV-32380 Array data type for stored routnes
- Stalled
- causes
-
MDEV-35003 Server crashes when reading routines table after creating a function with "returns type of"
- Closed
- is blocked by
-
MDEV-4912 Data type plugin API version 1
- Closed
-
MDEV-10914 ROW data type for stored routine variables
- Closed
- relates to
-
MDEV-11210 TYPE OF and %TYPE in stored function RETURN data type
- Open
-
MDEV-12307 ROW data type for built-in function return values
- Stalled
-
MDEV-12461 TYPE OF and ROW TYPE OF anchored data types for stored routine variables
- Closed
-
MDEV-23353 Qualified data types in SP
- Open
-
MDEV-31250 ROW variables do not get assigned from subselects
- Closed
-
MDEV-32380 Array data type for stored routnes
- Stalled