JPA / Native Queries : COUNT fails in MYSQL

Bug #768345 reported by Timo Westkämper on 2011-04-21
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Querydsl
Fix Released
Undecided
Unassigned

Bug Description

HibernateSQLQuery query = new HibernateSQLQuery(session, templates);
query.from(SExample.example);
Long l = query.count();

MySQL's JDBC driver seems to alway return count as BigInteger, same result with

SQLQuery squery = session.createSQLQuery("select count(*) from example")

and jdbc api

Fixed in SVN trunk

Changed in querydsl:
status: New → Fix Committed

Released in 2.2.0-beta4

Changed in querydsl:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers