Puhong You (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HHH-16489 (
https://hibernate.atlassian.net/browse/HHH-16489?atlOrigin=eyJpIjoiNWYzND...
)
Re: Hibernate native query returns duplicate column values with addScalar() call (
https://hibernate.atlassian.net/browse/HHH-16489?atlOrigin=eyJpIjoiNWYzND...
)
Hi, Prithvi, thanks for looking into this. In Hibernate 5.6.15.Final, please modify your
test code like this
{{NativeQuery<Integer> query=session.createNativeQuery(sql); }}
query.addScalar( "user_id", StandardBasicTypes.INTEGER );
List<Integer> rsList = query.list();
Your test should work with or without the addScalar() call in Hibernate 5.6.15.Final,
i.e.,
{{NativeQuery<Integer> query=session.createNativeQuery(sql); }}
List<Integer> rsList = query.list();
(
https://hibernate.atlassian.net/browse/HHH-16489#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16489#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100225- sha1:f83bc8f )