sqlancer.cockroachdb.ast.CockroachDBCollate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sqlancer Show documentation
Show all versions of sqlancer Show documentation
SQLancer finds logic bugs in Database Management Systems through automatic testing
package sqlancer.cockroachdb.ast;
import sqlancer.common.ast.UnaryNode;
public class CockroachDBCollate extends UnaryNode implements CockroachDBExpression {
private final String collate;
public CockroachDBCollate(CockroachDBExpression expr, String collate) {
super(expr);
this.collate = collate;
}
public String getCollate() {
return collate;
}
@Override
public String getOperatorRepresentation() {
return "COLLATE " + collate;
}
@Override
public OperatorKind getOperatorKind() {
return OperatorKind.POSTFIX;
}
}