You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Several times my SQL queries (which are perfect thanks to Parable's query builder!) failed during execution. I've mistaken a unique index on one of my columns.
But... Parable never warned me! Database::query() simply returned false. Which is legit, according to the PHP docs here.
PDO errors are silenced by default when the occur (see PHP docs once more). Please, make them load with warnings or exceptions (by "Parable default")! 😄
The text was updated successfully, but these errors were encountered:
Default remains ERRMODE_SILENT, though. Like a debug setting, I'd say throwing database-related errors should be a conscious choice. Obviously, documentation is essential with stuff like this 🙂
Several times my SQL queries (which are perfect thanks to Parable's query builder!) failed during execution. I've mistaken a unique index on one of my columns.
But... Parable never warned me!
Database::query()
simply returnedfalse
. Which is legit, according to the PHP docs here.PDO errors are silenced by default when the occur (see PHP docs once more). Please, make them load with warnings or exceptions (by "Parable default")! 😄
The text was updated successfully, but these errors were encountered: