From 798af5f156ede3b3422c4f2eb0e67f036e2fc508 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Wed, 20 Aug 2008 08:27:21 +0000 Subject: [PATCH] MDL-16141 Oops, copy and paste error on the method name in the subclasses. Sorry. --- lib/dml/mssql_adodb_moodle_database.php | 2 +- lib/dml/oci8po_adodb_moodle_database.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/dml/mssql_adodb_moodle_database.php b/lib/dml/mssql_adodb_moodle_database.php index 4fde207bbe..6bb96da626 100644 --- a/lib/dml/mssql_adodb_moodle_database.php +++ b/lib/dml/mssql_adodb_moodle_database.php @@ -130,7 +130,7 @@ class mssql_adodb_moodle_database extends adodb_moodle_database { /** * Returns the SQL for returning searching one string for the location of another. */ - public function sql_substr($needle, $haystack) { + public function sql_position($needle, $haystack) { // Implementation using standard SQL. return "CHARINDEX(($needle), ($haystack))"; } diff --git a/lib/dml/oci8po_adodb_moodle_database.php b/lib/dml/oci8po_adodb_moodle_database.php index bdcf2007f1..02a1a71876 100644 --- a/lib/dml/oci8po_adodb_moodle_database.php +++ b/lib/dml/oci8po_adodb_moodle_database.php @@ -185,7 +185,7 @@ class oci8po_adodb_moodle_database extends adodb_moodle_database { /** * Returns the SQL for returning searching one string for the location of another. */ - public function sql_substr($needle, $haystack) { + public function sql_position($needle, $haystack) { // Implementation using standard SQL. return "INSTR(($haystack), ($needle))"; } -- 2.39.5