sqlancer.citus.oracle.tlp.CitusTLPHavingOracle 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.citus.oracle.tlp;
import java.sql.SQLException;
import java.util.Arrays;
import sqlancer.citus.CitusGlobalState;
import sqlancer.citus.gen.CitusCommon;
import sqlancer.postgres.PostgresGlobalState;
import sqlancer.postgres.oracle.tlp.PostgresTLPHavingOracle;
public class CitusTLPHavingOracle extends PostgresTLPHavingOracle {
private final CitusTLPBase citusTLPBase;
public CitusTLPHavingOracle(CitusGlobalState state) {
super(state);
CitusCommon.addCitusErrors(errors);
citusTLPBase = new CitusTLPBase(state);
}
@Override
public void check() throws SQLException {
state.setAllowedFunctionTypes(Arrays.asList(PostgresGlobalState.IMMUTABLE));
citusTLPBase.check();
s = citusTLPBase.getSchema();
targetTables = citusTLPBase.getTargetTables();
gen = citusTLPBase.getGenerator();
select = citusTLPBase.getSelect();
predicate = citusTLPBase.getPredicate();
negatedPredicate = citusTLPBase.getNegatedPredicate();
isNullPredicate = citusTLPBase.getIsNullPredicate();
havingCheck();
state.setDefaultAllowedFunctionTypes();
}
}