I have a stored procedure defined escalate which taking a string parameter clientid.
I'm using sqlalchemy in python and using ORM. I have db.session created.
I'm not sure how i could call stored procedure with this session.
Anyone could point me the solution?
I have tried following; but getting an error:
TypeError: get_bind() got an unexpected keyword argument 'param'
Code:
from sqlalchemy import and_, func,text
db.session.execute(text("CALL escalate(:param)"), param=clientid)