We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
i execute this code
JPAQueryFactory .select(entity.intColumn.castToNum(Double::class.java)) // or .select(entity.intColumn.castToNum(Float::class.java)) .from(entity) .fetchOne()
than jpa execute native query
select cast(entity0_.int_column as double precision) from entity
this native query is not works
select cast(entity0_.int_column as decimal(19, 2)) from entity
this native query is works. but throw java exception
java.lang.IllegalArgumentException: argument type mismatch
Querydsl version: 5.0.0 | 5.1.0
Querydsl module:
Database: mariadb 10
JDK: 11
The text was updated successfully, but these errors were encountered:
Hi @jepangLee , sadly you won't get any help here.
You can try my fork, might work, https://github.com/openfeign/querydsl
Cheers
Sorry, something went wrong.
No branches or pull requests
castToNum Int to Double or Float is not works
i execute this code
than jpa execute native query
this native query is not works
this native query is works. but throw java exception
Steps to reproduce
Environment
Querydsl version: 5.0.0 | 5.1.0
Querydsl module:
Database: mariadb 10
JDK: 11
Additional details
The text was updated successfully, but these errors were encountered: