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?
New contributor
Kuantaiuly Salamat is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
3