Skip to content

Postgres: Search everywhere should ignore boolean columns #1216

@prokoma

Description

@prokoma

Adminer version: 5.4.1
Compiled: single file
Driver: PgSQL
Database version: 18.1
Plugins used:

When searching everywhere (both the entire database and a single table) with the = operator, an error is shown when the table has boolean columns when an invalid boolean value is searched for.

SELECT * FROM "table" WHERE ("col1" = 'aaa' OR "col2" = 'aaa' OR "col3" = 'aaa' OR "col4" = 'aaa' OR "booleancol" = 'aaa') LIMIT 50 (0.001 s)

ERROR: invalid input syntax for type boolean: "aaa"
LINE 3: ..."col3" = 'aaa' OR "col4" = 'aaa' OR "booleancol" = 'aaa' OR "...

The column type is boolean NULL.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions