if (from != null)
{
// TODO Find a function in Postgresql that supports the "from" position for searching
throw new JPOXUserException("PostgreSQL doesnt currently provide a function for providing indexOf(str, from). Your workaround is to miss off the 'from' position");
}
NumericExpression locateExpr = new NumericExpression("STRPOS", args);
// Subtract 1 from the result of STRPOS to be consistent with Java strings
// TODO Would be nice to put this in parentheses
return new NumericExpression(locateExpr, ScalarExpression.OP_SUB, integerLiteral);
}