Mapper can help diagnose errors by logging prepared statements that have syntax errors
Updated 2 years, 1 month ago
| Derek Chen-Becker | Reviewers | ||
| 232 | dchenbecker, dpp, marius, charles, heiko, joni, atsuhiko, jorge, naftoli, kris, indrajit, alexb | ||
| None | LiftWeb-archive | ||
Not all DB drivers throw useful exceptions when there's a syntax error in a prepared statement. Derby, for example, only tells you the line and column of the syntax error. This patch wraps any exceptions with a new SQLException that displays the offending prepared statement so that it's easier to diagnose the issue.
On local test app.
