]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-16141 Oops, copy and paste error on the method name in the subclasses. Sorry.
authortjhunt <tjhunt>
Wed, 20 Aug 2008 08:27:21 +0000 (08:27 +0000)
committertjhunt <tjhunt>
Wed, 20 Aug 2008 08:27:21 +0000 (08:27 +0000)
lib/dml/mssql_adodb_moodle_database.php
lib/dml/oci8po_adodb_moodle_database.php

index 4fde207bbe75c670eb46b49b3848ee6b669b6c69..6bb96da6267348d84ddd65e13f04865ca8083a9c 100644 (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))";
     }
index bdcf2007f1b8ff3fcebcc263f34af56ec8dbc88b..02a1a71876e49a98b5ebe7923350cc64c780ce59 100644 (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))";
     }