Closed Narann closed 3 weeks ago
Do you have an override on the Database
, using a ReconnectMixin
or something that supplies it's own execute_sql()
? See
You can see on line 508 that execute_sql()
accepts the named cursor argument. See #2914 for some discussion.
Good catch !
class OurDatabase(RetryOperationalError, PostgresqlExtDatabase):
pass
We had to do this to ensure we reconnect when the server close the connection.
So yes, I have to rewrite my wrapper fonction.
Thanks for your hard work !
Hello, and thanks again for your amazing work. :)
I had a problem upgrading to
3.17.6
.After some investigation,
3.17.5
have no problem.I think the problem appears with this commit: https://github.com/coleifer/peewee/commit/c6f4c4da7a1579021a35bbb1412b6b41e74b2d38
The called
self.execute_sql(sql, params, named_cursor=named_cursor)
does not seems to be the one wrote just below.I hope its helping.
Keep the good work! :)