andrewthegrate
Programmer
I am currently changing from sybase to mysql in a powerbuilder 10 application. I acannot find any way that works to call a stored procedure with output arguments. I don't need the vaues in the outputs but I do need to call the procs.
for this proc
create procedure testme(OUT v_xxx VARCHAR(30))
BEGIN
SET v_xxx = 'blah blah';
END;
declare quicktest procedure for testme @xxx = :s output using sqlca;
gives "can't use the output option when passing a constant to a stored procedure"
declare quicktest procedure for testme @xxx = :s using sqlca;
messagebox("",sqlca.sqlerrtext)
gives me
[MYSQL][ODBC 3.51 Driver][mysqld-5.0.41-community] OUT or INOUT argument 1 for routine dbse.testme is not a variable or NEW pseudo-variable in BEFORE trigger
Arrgs
for this proc
create procedure testme(OUT v_xxx VARCHAR(30))
BEGIN
SET v_xxx = 'blah blah';
END;
declare quicktest procedure for testme @xxx = :s output using sqlca;
gives "can't use the output option when passing a constant to a stored procedure"
declare quicktest procedure for testme @xxx = :s using sqlca;
messagebox("",sqlca.sqlerrtext)
gives me
[MYSQL][ODBC 3.51 Driver][mysqld-5.0.41-community] OUT or INOUT argument 1 for routine dbse.testme is not a variable or NEW pseudo-variable in BEFORE trigger
Arrgs