You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The parameter list must be a list or tuple. If you want to pass only single parameter as a tuple, you have to add a colon, i.e. (param,) otherwise the Python will handle it as expression and not as tuple constructor. Or use a list, as [para,1] will make a list with single item.
Submitted by: Adriano de Souza (azuos777)
work with a firebird 3.0 database and use many procedures with only one input parameter.
When I try to execute a procedure with two paramenters
cursor.callproc ("myproc", (param1, param2))
outputParams = cursor.fetchall ()
firebird.commit ()
print (outputParams)
Everything works fine.
But when trying to execute a procedure with only one parameter
cursor.callproc ("mysingleproc", (param1))
outputParams = cursor.fetchall ()
firebird.commit ()
print (outputParams)
I get a return error.
callproc paremeters must be List or Tuple
The text was updated successfully, but these errors were encountered: