I have a stored procedure with 2 input parameters and 1 output parameter. I'm calling the stored procedure through python with mysql connector.
The procedure accepts a month and a year and return the sum of a certain column during that period.
This works as expected in MySql Workbench but when I run the same query in python it returns 'None'
mycursor = mydb.cursor()
self.args = ('October','2021',0)
mycursor.callproc('calc_sum', self.args)
mycursor.execute('SELECT @_calc_sum_0, @_calc_sum_1, @_calc_sum_2')
result = mycursor.fetchall()
print ('sum_calc_is',result)
Running the above block of code return a tuple made up of 'None'
[(None, None, None)]
What am I doing wrong?