Skip to content

bug(frontend): wrong cast for NULL in places we require boolean #7312

@kwannoel

Description

@kwannoel

Describe the bug

dev=> SELECT 1 having null;
ERROR:  QueryError: internal error: argument of HAVING must be boolean, not type Varchar
dev=>

To Reproduce

SELECT 1 having null;

Expected behavior

postgres=# select 1 having null;
 ?column?
----------

Additional context

No response

Metadata

Metadata

Assignees

Labels

BY-sqlsmithIssue found by: SQLSmith.type/bugType: Bug. Only for issues.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions