mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-28 21:44:21 +01:00
Problem: sim was generating compound selects like this: - pick a random `table` - create a random single SELECT - create `n` random compound SELECTs (UNION ALL etc) assign a WHERE clause that always has a condition based on `table` This can result in e.g. ``` SELECT a FROM foo WHERE bar.x = 'baz' ``` Solution: Don't base the WHERE clause on a table that might not be referenced in the query. Again, the only reason this wasn't caught before was because `FaultyQuery` and `FsyncNoWait` are the only paths where this is actually tested with an assertion, and those are both disabled