I'm try to call proc with OUT/INPUT params like test_146_CallSPINAndOUTParams.py, but it's not work.
here is my procedure and script
-- procedure match_animal with INOUT and OUT params
CREATE PROCEDURE match_animal(first_name VARCHAR(128), INOUT second_name VARCHAR(128), OUT animal_weight DOUBLE PRECISION )
DEFINE match_name INT;
LET match_name = 0;
LET second_name = 'TRUE';
LET animal_weight = 10;
END PROCEDURE;
Python IfxPy.callproc() start.
Values of bound parameters _before_ CALL:
1: Peaches 2: Rickety Ride 3: 0
Traceback (most recent call last):
File "T2.py", line 18, in <module>
stmt, name, second_name, weight = IfxPy.callproc(conn, 'match_animal', (name, second_name, weight))
Exception: [OneDB][OneDB ODBC Driver][OneDB]Argument must be a Statement Local Variable or SPL variable or argument for an SQLCODE=-9752
I'm try to call proc with OUT/INPUT params like test_146_CallSPINAndOUTParams.py, but it's not work. here is my procedure and script
run it with "python3 T2.py", the output: