// Create a new StringExpression and manually update its SQL
StringExpression strExpr = new StringExpression(stmt, null, null);
SQLText sql = strExpr.toSQLText();
sql.append("SUBSTRING(").append(expr).append(" FROM ").append(startExpr.add(one))
.append(" FOR ").append(endExpr.sub(startExpr)).append(')');
return strExpr;
}
}
}