Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove comments. Rework TLPHaving/TLPWhere via TLPBase. Move TLP orac…
…les to separate module.
- Loading branch information
Showing
42 changed files
with
3,836 additions
and
735 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ target/ | |
.settings | ||
.project | ||
.checkstyle | ||
*.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package sqlancer.clickhouse; | ||
|
||
import com.beust.jcommander.Parameter; | ||
import com.beust.jcommander.Parameters; | ||
import sqlancer.MainOptions; | ||
import sqlancer.TestOracle; | ||
import sqlancer.clickhouse.oracle.tlp.ClickHouseTLPWhereOracle; | ||
import sqlancer.clickhouse.oracle.tlp.ClickHouseTLPHavingOracle; | ||
|
||
import java.sql.SQLException; | ||
import java.util.Arrays; | ||
import java.util.List; | ||
|
||
@Parameters(separators = "=", commandDescription = "ClickHouse") | ||
public class ClickHouseOptions extends MainOptions { | ||
|
||
@Parameter(names = "--oracle", converter = MainOptions.DBMSConverter.class) | ||
public List<ClickHouseOracle> oracle = Arrays.asList(ClickHouseOracle.TLPWhere); | ||
|
||
@Parameter(names = { "--test-joins" }, description = "Allow the generation of JOIN clauses", arity = 1) | ||
public boolean testJoins = true; | ||
|
||
public enum ClickHouseOracle { | ||
TLPWhere { | ||
@Override | ||
public TestOracle create(ClickHouseProvider.ClickHouseGlobalState globalState) throws SQLException { | ||
return new ClickHouseTLPWhereOracle(globalState); | ||
} | ||
}, | ||
HAVING { | ||
@Override | ||
public TestOracle create(ClickHouseProvider.ClickHouseGlobalState globalState) throws SQLException { | ||
return new ClickHouseTLPHavingOracle(globalState); | ||
} | ||
}; | ||
|
||
public abstract TestOracle create(ClickHouseProvider.ClickHouseGlobalState globalState) throws SQLException; | ||
} | ||
} |
Oops, something went wrong.