Skip to content

Commit 25b51b6

Browse files
committed
fix issue #1239
1 parent 21502b0 commit 25b51b6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/sqlancer/sqlite3/oracle/SQLite3RandomQuerySynthesizer.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,11 @@ public static SQLite3Expression generate(SQLite3GlobalState globalState, int siz
3737
SQLite3Tables targetTables = s.getRandomTableNonEmptyTables();
3838
List<SQLite3Expression> expressions = new ArrayList<>();
3939
SQLite3ExpressionGenerator gen = new SQLite3ExpressionGenerator(globalState)
40-
.setColumns(s.getTables().getColumns());
41-
SQLite3ExpressionGenerator whereClauseGen = new SQLite3ExpressionGenerator(globalState);
40+
.setColumns(targetTables.getColumns());
41+
SQLite3ExpressionGenerator whereClauseGen = new SQLite3ExpressionGenerator(globalState)
42+
.setColumns(targetTables.getColumns());
4243
SQLite3ExpressionGenerator aggregateGen = new SQLite3ExpressionGenerator(globalState)
43-
.setColumns(s.getTables().getColumns()).allowAggregateFunctions();
44+
.setColumns(targetTables.getColumns()).allowAggregateFunctions();
4445

4546
// SELECT
4647
SQLite3Select select = new SQLite3Select();

0 commit comments

Comments
 (0)