更新时间:2023-02-04 21:43:31
我采取了以下步骤:
multi=True
最后,我继续研究 callproc 函数.最终,另一个站点上的某个人提出了以下有效的代码:
multi=True
Finally, I continued to research the callproc function. Eventually someone on another site suggested the following code, which worked:
cur = connections["SomeDB"].cursor()
cur.callproc("spGetLocationPath", [id, someval])
res = next(cur.stored_results()).fetchall()
cur.close()