Skip to content

Commit 434a20a

Browse files
committed
[DuckDB] Log the random state
1 parent 025d8cc commit 434a20a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/sqlancer/duckdb/DuckDBProvider.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ public void generateAndTestDatabase(DuckDBGlobalState globalState) throws SQLExc
103103
StateLogger logger = globalState.getLogger();
104104
QueryManager manager = globalState.getManager();
105105
globalState.setSchema(DuckDBSchema.fromConnection(globalState.getConnection(), globalState.getDatabaseName()));
106+
if (globalState.getOptions().logEachSelect()) {
107+
globalState.getLogger().writeCurrent(globalState.getState());
108+
}
106109
for (int i = 0; i < Randomly.fromOptions(1, 2); i++) {
107110
boolean success = false;
108111
do {

0 commit comments

Comments
 (0)