Skip to content

Bitwise xor treated as pow with PostgreSQL #1673

@fredericDelaporte

Description

@fredericDelaporte

A HQL query using an exclusive binary or (bxor or ^) will result in an exponentiation with PostgreSQL.

The Dialect class registers bxor as ^, and this is not overridden in PostgreSQL dialect. But for PostgreSQL, ^ is an exponentiation, xor is #.

(Discovered while adding tests in #1670.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions