TMyStoredProc does not return the correct code and parameters under mysql 5.0.45-community-nt
Posted: Mon 15 Feb 2021 08:09
hello
create procedure like this:
DELIMITER $$
drop PROCEDURE if exists getsum_sp$$
CREATE PROCEDURE getsum_sp(in a1 int, in a2 int, out A int)
BEGIN
Set A = a1 + a2;
END$$
DELIMITER ;
create a new c++ project and new TMyStoredProc with StoredProcName = 'getsum_sp'
doppel click the component:
1) under mariadb 10.5.8-MariaDB
the sql is: CALL getsum_sp(:a1, :a2, @A); SELECT CAST(@A AS SIGNED) AS '@A'
and the parameters that return are correct.
2) under mysql 5.0.45-community-nt:
the sql is: CALL getsum_sp()
and the parameters that return are not correct.
please help
create procedure like this:
DELIMITER $$
drop PROCEDURE if exists getsum_sp$$
CREATE PROCEDURE getsum_sp(in a1 int, in a2 int, out A int)
BEGIN
Set A = a1 + a2;
END$$
DELIMITER ;
create a new c++ project and new TMyStoredProc with StoredProcName = 'getsum_sp'
doppel click the component:
1) under mariadb 10.5.8-MariaDB
the sql is: CALL getsum_sp(:a1, :a2, @A); SELECT CAST(@A AS SIGNED) AS '@A'
and the parameters that return are correct.
2) under mysql 5.0.45-community-nt:
the sql is: CALL getsum_sp()
and the parameters that return are not correct.
please help