Message:
The following issue has been re-assigned.
Assignee: Gavin King (mailto:ga...@in...)
Assigner: Gavin King (mailto:ga...@in...)
Date: Sun, 13 Jul 2003 9:35 PM
Comment:
I'll take a look. I though I fixed something like this before....
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-187
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-187
Summary: Problem with limit clause and named parameters
Type: Bug
Status: Assigned
Priority: Minor
Project: Hibernate2
Components:
core
Versions:
2.0 final
Assignee: Gavin King
Reporter: William Drai
Created: Sun, 13 Jul 2003 12:36 PM
Updated: Sun, 13 Jul 2003 9:35 PM
Description:
When using a limit clause and named parameters in a query,
the limit parameters are not populated correctly when a parameter
is used multiple times.
for example the query
"from c where c.field1 = :arg and c.field2 = :arg"
won't work with a limit clause.
I think the problem is that the bindNamedParameters method in QueryTranslator always returns the namedParams map size, instead of counting all parameters instances.
---------------------------------------------------------------------
JIRA INFORMATION:
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
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
|