Describe the bug
dev=> SELECT 1 having null;
ERROR: QueryError: internal error: argument of HAVING must be boolean, not type Varchar
dev=>
To Reproduce
Expected behavior
postgres=# select 1 having null;
?column?
----------
Additional context
No response