[hibernate-issues] [Hibernate-JIRA] Updated: (HHH-5577) Hibernate Criteria Query uses inline values insted of prepared statements params for some values

Radosław Smogura (JIRA) noreply at atlassian.com
Fri Sep 17 09:07:25 EDT 2010


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-5577?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Radosław Smogura updated HHH-5577:
----------------------------------

    Attachment: hibernate-bugs.zip

Address to see if attached application will be used is http://localhost:8080/hibernate-bugs/bugs/3

> Hibernate Criteria Query uses inline values insted of prepared statements params for some values
> ------------------------------------------------------------------------------------------------
>
>                 Key: HHH-5577
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5577
>             Project: Hibernate Core
>          Issue Type: Bug
>    Affects Versions: 3.6.0.CR1
>            Reporter: Radosław Smogura
>            Priority: Minor
>         Attachments: hibernate-bugs.zip
>
>
> When I use criteria api and e.g. try to do equal against path expression and Integer number I got query that renders to e.g where val = 1, instead of val = ?
> This affects performance, because disallow to use prepared statements cache.
> This behaviour occurs only for some types, e.g. dates uses prepared statements params.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the hibernate-issues mailing list