New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ramirezag opened this Issue Feb 18, 2014 · 1 comment

Comments

Projects
None yet
2 participants
@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

timowest added a commit that referenced this issue Feb 19, 2014

@timowest timowest added the fixed label Feb 19, 2014

@timowest

This comment has been minimized.

Show comment
Hide comment
@timowest

timowest Mar 24, 2014

Member

Released in 3.3.2

Member

timowest commented Mar 24, 2014

Released in 3.3.2

@timowest timowest closed this Mar 24, 2014

@timowest timowest added this to the 3.3.2 milestone Apr 13, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment