Skip to content

Commit 73d39e5

Browse files
committed
[SQLite] Rename the NoREC implementation
1 parent 5bf4fed commit 73d39e5

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/sqlancer/sqlite3/SQLite3Options.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import sqlancer.TestOracle;
1414
import sqlancer.sqlite3.SQLite3Provider.SQLite3GlobalState;
1515
import sqlancer.sqlite3.queries.SQLite3Fuzzer;
16-
import sqlancer.sqlite3.queries.SQLite3MetamorphicQuerySynthesizer;
16+
import sqlancer.sqlite3.queries.SQLite3NoRECTester;
1717
import sqlancer.sqlite3.queries.SQLite3PivotedQuerySynthesizer;
1818
import sqlancer.sqlite3.queries.SQLite3QueryPartitioningAggregateTester;
1919
import sqlancer.sqlite3.queries.SQLite3QueryPartitioningDistinctTester;
@@ -68,7 +68,7 @@ public class SQLite3Options {
6868
public boolean testMatch = true;
6969

7070
@Parameter(names = "--oracle", converter = DBMSConverter.class)
71-
public SQLite3Oracle oracle = SQLite3Oracle.METAMORPHIC;
71+
public SQLite3Oracle oracle = SQLite3Oracle.NoREC;
7272

7373
public enum SQLite3Oracle {
7474
PQS {
@@ -77,10 +77,10 @@ public TestOracle create(SQLite3GlobalState globalState) throws SQLException {
7777
return new SQLite3PivotedQuerySynthesizer(globalState);
7878
}
7979
},
80-
METAMORPHIC {
80+
NoREC {
8181
@Override
8282
public TestOracle create(SQLite3GlobalState globalState) throws SQLException {
83-
return new SQLite3MetamorphicQuerySynthesizer(globalState);
83+
return new SQLite3NoRECTester(globalState);
8484
}
8585
},
8686
FUZZER {

src/sqlancer/sqlite3/queries/SQLite3MetamorphicQuerySynthesizer.java renamed to src/sqlancer/sqlite3/queries/SQLite3NoRECTester.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
import sqlancer.sqlite3.schema.SQLite3Schema.SQLite3Table;
3434
import sqlancer.sqlite3.schema.SQLite3Schema.SQLite3Tables;
3535

36-
public class SQLite3MetamorphicQuerySynthesizer implements TestOracle {
36+
public class SQLite3NoRECTester implements TestOracle {
3737

3838
// SELECT COUNT(*) FROM t0 WHERE <cond>;
3939
// SELECT SUM(count) FROM (SELECT <cond> IS TRUE as count FROM t0);
@@ -54,7 +54,7 @@ public class SQLite3MetamorphicQuerySynthesizer implements TestOracle {
5454
Set<String> firstValues = new HashSet<>();
5555
Set<String> secondValues = new HashSet<>();
5656

57-
public SQLite3MetamorphicQuerySynthesizer(SQLite3GlobalState globalState) {
57+
public SQLite3NoRECTester(SQLite3GlobalState globalState) {
5858
this.s = globalState.getSchema();
5959
this.con = globalState.getConnection();
6060
this.state = (SQLite3StateToReproduce) globalState.getState();

0 commit comments

Comments
 (0)