Error on yearMonth function #827

Closed
daniel-frank opened this Issue Jun 24, 2014 · 2 comments

Comments

Projects
None yet
2 participants
@daniel-frank

I'm trying to update QueryDSL from 3.2.1 to 3.4.0, but a query with yearMonth function is raising an exception on Eclipselink (The right expression is not a valid expression).
Looking at the generated JPQL I notice the following differences:

3.2.1

select 1
from Log log
where log.tableName = ?1 and log.operation = ?2 and extract(year from log.date) * ?3 + extract(month from log.date) = ?4

3.4.0

select 1
from Log log
where log.tableName = ?1 and log.operation = ?2 and year(log.date) * 100 + month(log.date) = ?3

I'm using Eclipselink 2.5.1 (with JPA 2.1 support).

@timowest

This comment has been minimized.

Show comment
Hide comment
@timowest

timowest Jun 24, 2014

Member

In refactorings the correct mapping for yearMonth was not preserved. This has now been fixed in the pull request.

Member

timowest commented Jun 24, 2014

In refactorings the correct mapping for yearMonth was not preserved. This has now been fixed in the pull request.

@timowest timowest modified the milestone: 3.4.1 Jun 24, 2014

@timowest

This comment has been minimized.

Show comment
Hide comment
@timowest

timowest Jun 29, 2014

Member

Released in 3.4.1

Member

timowest commented Jun 29, 2014

Released in 3.4.1

@timowest timowest closed this Jun 29, 2014

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