Project

General

Profile

Bug #5492

Display the full SQL query whenever an SQL exception is raised.

Added by Arjen Pander almost 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2018-01-29
Due date:
% Done:

0%

Estimated time:

Description

Currently when uWeb encounters an exception as a result of an SQL syntax error, only a portion of the query is displayed.
Quite often this section doesn't contain the actual problem, meaning no useful information can be extracted from this.
It seems we will have to catch the exception in uWeb first, then append the query, after which we raise the exception again.
This is because the error, and the partial query, are originally raised outside of uWeb, by the default mysql libary.

Also available in: Atom PDF