moodle/privacy
Eloy Lafuente (stronk7) c9840c0144 MDL-62619 privacy: Prevent action when boolean queries are involved
Before the patch, queries like:

SELECT 1 FROM dual UNION SELECT 2 FROM dual

were failing badly, with everything but the first numeric element
being ignored by the optimization.

So, being conservative, now we reduce the query being analysed,
ignoring any subquery, inline view (anything within parenthesis
in general) and, in the remaining query, if a boolean query (UNION,
MINUS, INTERSECT...) is found, we don't apply any optimization.
2018-08-09 16:05:55 +02:00
..
classes MDL-62619 privacy: Prevent action when boolean queries are involved 2018-08-09 16:05:55 +02:00
tests MDL-62619 privacy: Prevent action when boolean queries are involved 2018-08-09 16:05:55 +02:00