Open delcroip opened 7 months ago
Hi @delcroip, can you provide an example so I can try to reproduce this locally?
with this data
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
proposed solution in case params is a dict, it generate an list of param taking the order from the sql