Closed pykler closed 2 years ago
also seeing this issue in our pipelines, we use **kwargs to init Database object.
The issue was introduced with this commit a few days ago https://github.com/ponyorm/pony/commit/8a6ccb7c6273ca173779cf8993ff05ffbada305e
Thanks for reporting. Will fix it asap.
renaming that argument should be it ... there doesnt seem to be any unit tests for that code path though.
It's actually not true, we just didn't launch tests for each database provider so this was missed.
There is a regression with pony 0.7.15 ... when creating a db connection using kwargs the following error is raised:
the reason seems to be due to
self
being passed in at pony/orm/core.py:787where
self
is the argumentdatabase
which is also being passed in kwargs as the database name as per the docsraises the TypeError mentioned above
note that there is a comment on line 767 that says
guess the update to DBAPIProvider didnt adhere to that statement ... this should actually fail if you use database as a kwarg in any provider not just postgres!