Details
-
Task
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
None
-
None
Description
Original user question: https://stackoverflow.com/questions/74304246/how-to-have-specific-information-in-mariadb-error-python
If a bulk operation fails, the server returns the standard error message, e.g. "a foreign key constraint failed". Especially when dealing with large arrays it is very hard and painful to walk through all the values and check the reason for this error.
Since the server already knows which row and value caused this error, a more verbose error message like "A foreign key constraint failed at row x, column y" would be helpful.