I am using exec to execute stored procedures, but the return type is not accurate.
Stored procedure:
DELIMITER //
CREATE PROCEDURE `user_get_by_username`(
IN in_username VARCHAR(25)
)
BEGIN
SELECT `id`, `username` FROM `user` WHERE `username` = in_username;
END //
DELIMITER ;
The issue is that execute does not return User[][], but instead it returns [User[], ResultSetHeader],
and I cannot use the following as it does not work:
I am using
exec
to execute stored procedures, but the return type is not accurate.Stored procedure:
Code
The issue is that
execute
does not returnUser[][]
, but instead it returns[User[], ResultSetHeader]
, and I cannot use the following as it does not work: