## Summary
<!--Explain briefly what goes wrong and explain why you believe this is a bug and not the intended behavior of SQLite (if it is not a crash).-->**No review yet**

## Minimized query

```sql
BEGIN DEFERRED;
CREATE TABLE t0 (c0, c1 NOT NULL DEFAULT x'36bf036c468fa1a358c1f1926eb427', c2, PRIMARY KEY (c0, c1));
INSERT INTO t0(c2) VALUES (NULL), (NULL);
INSERT INTO t0(c2) VALUES('a');
SELECT DISTINCT * FROM t0 WHERE NULL IS t0.c0;
SELECT * FROM t0 WHERE (( (0 IS NOT FALSE) OR NOT (0 IS FALSE OR (t0.c0 = 1)) ) IS 0);
SELECT ((0 IS NOT FALSE) OR NOT (0 IS FALSE OR (t0.c0 = 1)) ) IS 0 FROM t0;
SELECT ( (0 IS NOT FALSE) OR NOT (0 IS 0 OR (t0.c0 = 1)) ) IS 0 FROM t0;
SELECT ((0 IS NOT FALSE) OR NOT (0 IS FALSE OR (t0.c0 = 1)) ) FROM t0;
SELECT NOT (0 IS FALSE OR (t0.c0 = 1)) FROM t0;


SELECT * FROM t0 AS a FULL JOIN t0 AS b ON a.rowid = b.rowid;
COMMIT;
SELECT * FROM t0;
DELETE FROM t0 WHERE rowid = 35 RETURNING *;
INSERT INTO t0 SELECT * FROM t0;
```

## Actual output

```sql
|6¿lF¡£XÁñn´'|
|6¿lF¡£XÁñn´'|a
|6¿lF¡£XÁñn´'|
|6¿lF¡£XÁñn´'|
|6¿lF¡£XÁñn´'|a
1
1
1
1
1
1
0
0
0
0
0
0
|6¿lF¡£XÁñn´'|||6¿lF¡£XÁñn´'|
|6¿lF¡£XÁñn´'|||6¿lF¡£XÁñn´'|
|6¿lF¡£XÁñn´'|a||6¿lF¡£XÁñn´'|a
|6¿lF¡£XÁñn´'|
|6¿lF¡£XÁñn´'|
|6¿lF¡£XÁñn´'|a
```

## Expectation

```sql
|6¿^ClF¡£XÁñn´'|
|6¿^ClF¡£XÁñn´'|a
|6¿^ClF¡£XÁñn´'|
|6¿^ClF¡£XÁñn´'|
|6¿^ClF¡£XÁñn´'|a
1
1
1
1
1
1
0
0
0
0
0
0
|6¿^ClF¡£XÁñn´'|||6¿^ClF¡£XÁñn´'|
|6¿^ClF¡£XÁñn´'|||6¿^ClF¡£XÁñn´'|
|6¿^ClF¡£XÁñn´'|a||6¿^ClF¡£XÁñn´'|a
|6¿^ClF¡£XÁñn´'|
|6¿^ClF¡£XÁñn´'|
|6¿^ClF¡£XÁñn´'|a
```

## Flag

```

```

