Skip to content

SQLExpressions.datediff in seconds does not work in Postgres #668

@ramirezag

Description

@ramirezag

I believe there's a typo in line 104 of PostgresTemplates. It uses 'minute' in date_part instead of 'second'.

String secondsDiff =  "(" +  minutesDiff + " * 60 + date_part('minute', age({1}, {0})))";

Tested using querydsl-sql 3.3.1 and Postgres 9.3.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions