-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement `DECLARE TYPE type_name IS RECORD (..)` with scalar members in stored routines and anonymous blocks
- Loading branch information
1 parent
4c956fa
commit 9f5adf0
Showing
15 changed files
with
1,964 additions
and
11 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
29 changes: 29 additions & 0 deletions
29
plugin/type_uuid/mysql-test/type_uuid/type_uuid_sp_record.result
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Start of 11.8 tests | ||
# | ||
# MDEV-34317 DECLARE TYPE type_name IS RECORD (..) with scalar members in stored routines | ||
# | ||
# | ||
# Demonstrate UDT field type with RECORD | ||
# | ||
SET sql_mode=ORACLE; | ||
DECLARE | ||
TYPE rec_t IS RECORD ( | ||
a INT, | ||
b UUID | ||
); | ||
rec rec_t:= rec_t(1,'6021cf0b-94f8-11ef-b80e-e454e874f5e5'); | ||
BEGIN | ||
CREATE TABLE t1 AS SELECT rec.a, rec.b; | ||
SHOW CREATE TABLE t1; | ||
SELECT * FROM t1; | ||
DROP TABLE t1; | ||
END; | ||
$$ | ||
Table Create Table | ||
t1 CREATE TABLE "t1" ( | ||
"rec.a" int(11) DEFAULT NULL, | ||
"rec.b" uuid DEFAULT NULL | ||
) | ||
rec.a rec.b | ||
1 6021cf0b-94f8-11ef-b80e-e454e874f5e5 | ||
# End of 11.8 tests |
28 changes: 28 additions & 0 deletions
28
plugin/type_uuid/mysql-test/type_uuid/type_uuid_sp_record.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--echo # Start of 11.8 tests | ||
|
||
--echo # | ||
--echo # MDEV-34317 DECLARE TYPE type_name IS RECORD (..) with scalar members in stored routines | ||
--echo # | ||
|
||
|
||
--echo # | ||
--echo # Demonstrate UDT field type with RECORD | ||
--echo # | ||
SET sql_mode=ORACLE; | ||
DELIMITER $$; | ||
DECLARE | ||
TYPE rec_t IS RECORD ( | ||
a INT, | ||
b UUID | ||
); | ||
rec rec_t:= rec_t(1,'6021cf0b-94f8-11ef-b80e-e454e874f5e5'); | ||
BEGIN | ||
CREATE TABLE t1 AS SELECT rec.a, rec.b; | ||
SHOW CREATE TABLE t1; | ||
SELECT * FROM t1; | ||
DROP TABLE t1; | ||
END; | ||
$$ | ||
DELIMITER ;$$ | ||
|
||
--echo # End of 11.8 tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.