Skip to content

not= query is throwing a PSQLException #289

Open
@NeilMenne

Description

@NeilMenne

The exception is a syntax error.

I am doing something like:

(select my_table (where (not= :boolcolumn false)))

This throws an exception stating that there's a syntax error at or near $1 which is what should be the false.

As a further attempt at digging into the problem, I tried:

(exec-raw ["SELECT * FROM my_table WHERE boolcolumn IS NOT ?" [false]] :results)

This returns the same exception.

I am using version 9.3.5 of PostgresSQL and the following from my project file:

[korma "0.4.0"]
[org.postgresql/postgresql "9.4-1201-jdbc4"]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions