Reputation: 1
I'm encountering an issue when deleting a row in PostgreSQL with foreign key relationships. Typically, this raises a ForeignKeyViolationError (23503), but when using asyncpg, I receive a NotNullViolationError (23502).
Why is this happening, and how should I handle such situations correctly?
Upvotes: 0
Views: 50