Skip to content
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
Closed

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

ramirezag opened this issue Feb 18, 2014 · 1 comment
Milestone

Comments

@ramirezag
Copy link

@ramirezag ramirezag commented Feb 18, 2014

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
Copy link
Member

@timowest 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
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants