Skip to content

Commit e1c4a21

Browse files
committed
[SQLite] Also prevent generating UNION clauses with affinities in views when using PQS
1 parent 10c855d commit e1c4a21

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/sqlancer/sqlite3/gen/ddl/SQLite3ViewGenerator.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,10 @@ private static boolean checkAffinity(SQLite3Expression randomQuery) {
7676
return false;
7777
}
7878
}
79+
return true;
80+
} else {
81+
return false; // the columns in UNION clauses can also have affinities
7982
}
80-
return true;
8183
}
8284

8385
private static void columnNamesAs(StringBuilder sb, int size) {

0 commit comments

Comments
 (0)