MDL-27071 Allow Oracle IN() to use > 1000 items
commite206f3ffcb480b33473b3cb29667780166653a8a
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Sun, 28 Apr 2013 23:14:24 +0000 (29 01:14 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Mon, 29 Apr 2013 08:03:39 +0000 (29 10:03 +0200)
tree912d11245263d496d97506e57f99dfa94b8c8643
parent5e00b9a6e7193271ebb9a0e54242e153fb6e1d9e
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