com.sap.cds.jdbc.postgresql.PostgreSqlFunctionMapper Maven / Gradle / Ivy
/*******************************************************************
* © 2022 SAP SE or an SAP affiliate company. All rights reserved. *
*******************************************************************/
package com.sap.cds.jdbc.postgresql;
import com.sap.cds.impl.parser.token.CqnPlainImpl;
import com.sap.cds.jdbc.generic.GenericFunctionMapper;
import com.sap.cds.ql.Predicate;
import com.sap.cds.ql.cqn.CqnPlain;
import com.sap.cds.ql.cqn.CqnValue;
public class PostgreSqlFunctionMapper extends GenericFunctionMapper {
protected static final CqnPlain ILIKE = CqnPlainImpl.plain("ILIKE");
@Override
public Predicate like(CqnValue value, CqnValue pattern, String esc, boolean caseInsensitive) {
return ilike(value, pattern, esc, caseInsensitive);
}
}