MDL-16141 Oops, copy and paste error on the method name in the subclasses. Sorry.

This commit is contained in:
tjhunt
2008-08-20 08:27:21 +00:00
parent f692fb10f9
commit 798af5f156
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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))";
}
+1 -1
View File
@@ -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))";
}