Jaymon / prom

A PostgreSQL or SQLite orm for Python
MIT License
22 stars 4 forks source link

prom mismatch of placeholders (eg %s or ?) and passed in values in raw query #74

Closed Jaymon closed 1 year ago

Jaymon commented 5 years ago

it will fail with a tuple index out of range error, but it might be nice for prom to catch this error and add more info like how many placeholders and how many values you passed in or be more clear, something like:

You have X placeholders and Y values, fix your query or add more values