Reputation: 53
I have a question, I've tried to pass an out parameter but appears an error, this is my code:
cursor = connection.cursor()
lOutput = cursor.var(cx_Oracle.STRING)
lOutput.setvalue(0, '')
cursor.callproc("SOME_PROC',[lOutput])
return lOutput .getvalue(0)
Please help me. thanks in advance.
Upvotes: 1
Views: 1734
Reputation: 841
I change the last line like this
return lOutput .getvalue()
And it runs.
Upvotes: 2