Skip to content

Prevent errors raising exceptions

Sam Sehnert requested to merge patch-query-exception-handling into master

Sometimes a QueryException is raised where getCode returns a non int value. This throws an undecipherable error and buries the correct SQL error reporting.

In my case, MySQL was returning HY000 in the getCode result.

Merge request reports