MDL-27071 Allow Oracle IN() to use > 1000 items
commit20c9916396e2deae148e34ea302f2fe5b7dbc7ac
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:22:38 +0000 (29 01:22 +0200)
tree9f6453705e478c4096582024047a4d1238fb80bd
parent9b2ebc4587fb88e2ba0e8fe1ccd9f001975f2cba
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.
lib/dml/oci_native_moodle_database.php