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
While trying to delete an entry with bulk=True, there is a FOREIGN KEY constraint failed message.
Apparently, Pony does not set the SET NULL action in the intermediate table.
That is peculiar because it sets this for regular (not intermediate) tables, as can be seen with PRAGMA foreign_key_list(db_name);
# Features
* #472: Python 3.8 support
* Support of hybrid functions (inlining simple Python functions into query)
* #438: support datetime-datetime, datetime-timedelta, datetime+timedelta in queries
# Bugfixes
* #430: add ON DELETE CASCADE for many-to-many relationships
* #465: Should reconnect to MySQL on OperationalError 2013 'Lost connection to MySQL server during query'
* #468: Tuple-value comparisons generate incorrect queries
* #470 fix PendingDeprecationWarning of imp module
* Fix incorrect unpickling of objects with Json attributes
* Check value of discriminator column on object creation if set explicitly
* Correctly handle Flask current_user proxy when adding new items to collections
* Some bugs in syntax of aggregated queries were fixed
* Fix syntax of bulk delete queries
* Bulk delete queries should clear query results cache so next select will get correct result from the database
* Fix error message when hybrid method is too complex to decompile
While trying to delete an entry with
bulk=True
, there is aFOREIGN KEY constraint failed
message.Apparently, Pony does not set the
SET NULL
action in the intermediate table.That is peculiar because it sets this for regular (not intermediate) tables, as can be seen with
PRAGMA foreign_key_list(db_name)
;Minimal example:
Results in
The text was updated successfully, but these errors were encountered: