mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Uninitialized Column_definition::pack_flag for ROW-type SP variables and their fields
Fixed that the Column_definition::pack_flag member corresponding to ROW-type SP variables and their fields was not properly initialized. This lead to sporadic test failures. Valgrind complained about jumps depending on uninitialized value in VALGRIND builds. This patch makes sure that sp_head::fill_spvar_definition() is always called for ROW variables and their fields. Additionally, fixed that a function with a scalar parameter erroneously acceptes ROWs with one fields. Now an error is returned.
This commit is contained in:
@ -274,8 +274,7 @@ SELECT f1(a);
|
||||
END;
|
||||
$$
|
||||
CALL p1();
|
||||
f1(a)
|
||||
NULL
|
||||
ERROR 21000: Operand should contain 1 column(s)
|
||||
DROP PROCEDURE p1;
|
||||
DROP FUNCTION f1;
|
||||
#
|
||||
|
Reference in New Issue
Block a user