MySQL ZStoreProc error
Posted: 07.03.2013, 18:13
Hi,
iam try develop with ZeosLib but it is hard.
I have a MySQL store procedure:
[font=Courier New]
CREATE PROCEDURE spGetLogin
(
IN sUsername VARCHAR(32),
IN sPassword VARCHAR(32),
INOUT iUserId INT,
INOUT iReturn INT
)
BEGIN
SELECT iReturn=userrol, iUserId=sysuserid FROM directorio.estsysusers
WHERE (usernickname = sUsername) AND (userpassword = sPassword);
END;
[/font]
in mi XE2 app, i call and get a error message:
"SQL Error:Procedure spGetLogin canĀ“t return a result set in the given context"
what it the wrong...?
iam try develop with ZeosLib but it is hard.
I have a MySQL store procedure:
[font=Courier New]
CREATE PROCEDURE spGetLogin
(
IN sUsername VARCHAR(32),
IN sPassword VARCHAR(32),
INOUT iUserId INT,
INOUT iReturn INT
)
BEGIN
SELECT iReturn=userrol, iUserId=sysuserid FROM directorio.estsysusers
WHERE (usernickname = sUsername) AND (userpassword = sPassword);
END;
[/font]
in mi XE2 app, i call and get a error message:
"SQL Error:Procedure spGetLogin canĀ“t return a result set in the given context"
what it the wrong...?