{
caseSensitive = true;
pattern = pattern.substring(4);
}
DatastoreAdapter dba = qs.getStoreManager().getDatastoreAdapter();
RegularExpressionConverter converter = new RegularExpressionConverter(
dba.getPatternExpressionZeroMoreCharacters().charAt(0),
dba.getPatternExpressionAnyCharacter().charAt(0),
dba.getEscapeCharacter().charAt(0));
if (caseSensitive)
{
StringLiteral patternExpr = new StringLiteral(qs, mapping, converter.convert(pattern).toLowerCase());
//StringExpression escapedExpr = (StringExpression) qs.getStoreManager().getDatastoreAdapter().getEscapedPatternExpression(patternExpr);
return new LikeExpression(this.toLowerCaseMethod(), ScalarExpression.OP_LIKE, patternExpr);