Details
-
Bug
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
12.1(EOL), 12.2(EOL), 12.3, 13.0, 13.1
-
None
-
None
Description
SET sql_mode=ORACLE; |
CREATE OR REPLACE TABLE t1 (a INT, b VARCHAR(10)); |
DELIMITER $$
|
CREATE OR REPLACE PROCEDURE p1() AS |
CURSOR c1 IS SELECT * FROM t1; |
TYPE assoc0_t IS TABLE OF c1%ROWTYPE INDEX BY INT; |
a0 assoc0_t;
|
BEGIN
|
a0(0).a:= 10;
|
a0(0).b:= 'b10'; |
SELECT a0(10).a, a0(10).b; |
END; |
$$
|
DELIMITER ;
|
CALL p1;
|
ERROR 1146 (42S02): Table 'test.c1' doesn't exist
|
The above output is not expected. It should not get the element structure from from cursor c1 rather than the table c1.
Attachments
Issue Links
- is caused by
-
MDEV-34319 Associative arrays: DECLARE TYPE .. TABLE OF .. INDEX BY in stored routines
-
- Closed
-
- relates to
-
MDEV-36767 Associative arrays: deferred features
-
- Open
-
-
MDEV-39563 Implement UPDATE ... RETURNING ... INTO
-
- In Testing
-
-
MDEV-40812 SELECT INTO arroc_array does not work for ROWTYPE
-
- Open
-