/**
* 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))";
}
/**
* 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))";
}