我是Django的初学者。我试图用游标从django调用存储过程,但是它说游标没有'return_value'属性。
with connection.cursor() as cursor:
cursor.callproc('check_schedule', [new_sch.bus_id, new_sch.depart_time, new_sch.arrive_time, 0])
if cursor.return_value == 1:
result_set = cursor.fetchall()
cursor.close()