]> git.mjollnir.org Git - moodle.git/commit
accesslib: build_context_path() - better UPDATE SQL
authormartinlanghoff <martinlanghoff>
Thu, 20 Sep 2007 01:03:35 +0000 (01:03 +0000)
committermartinlanghoff <martinlanghoff>
Thu, 20 Sep 2007 01:03:35 +0000 (01:03 +0000)
commitd20559f3e48418694d050de6c4b0f4929f32448d
tree7a5abac0b863a8e1fa88a787e22f3d685b3858f8
parent92b34bdd6cf742deaafb20eb82fc8e8a147a87c8
accesslib: build_context_path() - better UPDATE SQL

A bit of cleanup on the SQL we use for updates. Unfortunately, MySQL
uses non-SQL-standard syntax for updates reading or updating multiple
tables. After much testing across Pg and MySQL, I boiled it down to
the minimal differences -- but we still have different SQL.

The timings for this on a large reference install, calling
build_context_path(true):

 - MySQL incompatible 1s
 - Petr's fixes 60s -- DB complains of too many writes
 - This commit 24s  -- DB complains of too many writes

Also - fixed a remaining problem with $emptyclause

Affects MDL-11347
lib/accesslib.php