[hibernate-issues] [Hibernate-JIRA] Created: (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:05:24 EDT 2010


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


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