Skip to content

Casting types inside formula throws exception #1832

Closed
@mmalyska

Description

@mmalyska

NH version: 5.0.3

When we started using filters inside HBMs maps that contains formulas with postgresql type casting, NH started to throw exception:

System.ArgumentException: 'Invalid filter-parameter name format; the name should be a property path.'

After some debugging I found value that throws:
filterParameterName hase value set to :text

Example formula that throws exception:

formula="initcap(`IMIE`)::text || ' '::text || initcap(`NAZWISKO`)::text"

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