Skip to content

Using where x = $1::TEXT[] breaks type checking #3087

Open
@danthegoodman1

Description

@danthegoodman1

Version

1.24.0

What happened?

Compliation successful with invalid WHERE condition. In the following query creator_code is not a valid column (should be url_code). When using the in ($1::TEXT[]) condition it breaks the check and successfully compiles only for the query to throw errors at query time.

Relevant log output

No response

Database schema

No response

SQL queries

select user_id, url_code
from creators
where creator_code in ($1::TEXT[])
;

Configuration

No response

Playground URL

No response

What operating system are you using?

macos

What database engines are you using?

postgres

What type of code are you generating?

Go

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions