]> git.mjollnir.org Git - moodle.git/commit
dmllib: more consistent err handling for execute_sql() and others
authormartinlanghoff <martinlanghoff>
Tue, 2 Oct 2007 08:34:10 +0000 (08:34 +0000)
committermartinlanghoff <martinlanghoff>
Tue, 2 Oct 2007 08:34:10 +0000 (08:34 +0000)
commitba2984bf2be92a51fe053301c75b94ae9f5450f2
treeaa099839e3f3068f763109aa0147794db8c788b1
parentcaf971045ab3104e4fcf41aa4669aa92d577197b
dmllib: more consistent err handling for execute_sql() and others

Silent errors in execute_sql() have been causing us lots of grief.
Turns out that if you have dblogerror set, it _will_ write it to the
logs.

DMLlib wasn't consistent. Most "modern" codepaths were calling both
debugging() and the dblogerror idiom. So we make all calls to
$db->Execute() consistent.

(Some exceptions remain, mostly for hardcoded SQL, such as the SET
statements when we connect...)
lib/dmllib.php