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
sql = '''SELECT prod."ProdID" as "ProdID"
FROM "tblProduct" prod
WHERE prod."LocationId" = %(LocationId)s OR %(LocationId)s = 0 ;'''
params = {"LocationId": locationId}
This fails
cur.execute(sql, params)
this doesn't
cur.execute(*manage_named_parameters(sql,params))
hope it helps (the table can be change to anything the key to reproduce is to have a dict as params )
Note: regarding the error management it param[p] should throw a KeyError as it should that why no error management was added
There are some features which are not supported yet. Please check the Limitations first to see if your bug is listed.
Software versions
if I have a querry with named filter it does not work
proposed solution in case params is a dict, it generate an list of param taking the order from the sql
The text was updated successfully, but these errors were encountered: