Django Call Stored Procedure on Second Database
I'm trying to call a stored procedure on a multi-db Django installation, but am not having any luck getting results. The stored procedure (which is on the secondary database) always returns an empty array in Django, but the expected result does appear when executed in a mysql client. My view.py file from SomeDBModel import models from django.db import connection def index(request, someid): #Some related django-style query that works here loc = getLocationPath(someid, 1) print(loc) def getLocationPath(id, someval): cursor = connection.cursor() cursor.callproc("SomeDB.spGetLocationPath", [id,