-
Bug
-
Resolution: Not a bug
-
Minor
-
None
-
2.0.2
-
None
-
Any
-
MOODLE_20_STABLE
Attempting to use the same named parameter more than once in a query will result in the following error:
ERROR: Incorrect number of query parameters. Expected 2, got 1.
example of such a query: SELECT id FROM
{user}WHERE firstname = ':search' OR lastname = ':search';
As the parameters array passed to $DB->get_records are keyed on the named parameter it is not possible to supply the named parameter more than once.