MDL-27071 Allow Oracle IN() to use > 1000 items
commit0f987021a38fcfc27c191a3fbbe8c1cd3bac22ac
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Sun, 28 Apr 2013 23:14:24 +0000 (29 01:14 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Sun, 28 Apr 2013 23:53:01 +0000 (29 01:53 +0200)
treec8228070f268393cd7046ae4ab9ba7770fb6dc4d
parentc6be1389b7c6eb234930e71675675a0cdd80fab2
MDL-27071 Allow Oracle IN() to use > 1000 items

By using a pivoting strategy, we modify the list
of params (QM and NAMED supported) into a
subquery, so the 1000 limit in Oracle (ORA-01795)
is not thrown anymore.

Conflicts:
lib/dml/oci_native_moodle_database.php
lib/dml/oci_native_moodle_database.php