All Downloads are FREE. Search and download functionalities are using the official Maven repository.

sqlancer.mysql.ast.MySQLExists Maven / Gradle / Ivy

Go to download

SQLancer finds logic bugs in Database Management Systems through automatic testing

There is a newer version: 2.0.0
Show newest version
package sqlancer.mysql.ast;

public class MySQLExists implements MySQLExpression {

    private final MySQLExpression expr;
    private final MySQLConstant expected;

    public MySQLExists(MySQLExpression expr, MySQLConstant expectedValue) {
        this.expr = expr;
        this.expected = expectedValue;
    }

    public MySQLExists(MySQLExpression expr) {
        this.expr = expr;
        this.expected = expr.getExpectedValue();
        if (expected == null) {
            throw new AssertionError();
        }
    }

    public MySQLExpression getExpr() {
        return expr;
    }

    @Override
    public MySQLConstant getExpectedValue() {
        return expected;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy