Issue Task Closed

#79870Check for wrong usage of Connection::errorCode()

Morton Jonuschat 02/17/17, 07:23 updated 10/02/18, 11:02

Description

There are places in the core where we try to detect failed SQL statements based on the usage of Connection::errorCode().
This is not reliable and may lead to false positives, i.e. due to databases reporting an Errorcode of ‘00000’ which isn’t an actual error.

Doctrine throws an exception on failed statements, wrap statements in try/catch to get reliable feedback

Reviews 2