SQL error MUST NOT happen... so stop the execution of if an SQL error is
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Tue, 24 Jun 2008 20:39:18 +0000 (22:39 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Tue, 24 Jun 2008 20:39:18 +0000 (22:39 +0200)
commit084a60da013242606a81154e49257ab3ff51713f
treedc3ca35ceaf71d6c4bca407501694f38644c6767
parent9902e47b972f3dc62420773010e433f23991914d
SQL error MUST NOT happen... so stop the execution of if an SQL error is
found.

Why ?
I've found too many invisible SQL errors during the last few weeks
(invisible == not shown in a backtrace because of a page redirection). SQL
errors are evil (hum), they should NEVER happen: a query that is allowed to
fail can always been rewritten in a way errors are ignored (e.g. INSERT
IGNORE).

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
classes/xdb.php