Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001063 [Resin] major always 04-20-06 04:48 09-01-06 10:27
Reporter keith View Status public  
Assigned To
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 3.1.0 Product Version 3.0.18
  Product Build
Summary 0001063: EJB3 QL support incomplete, no support for setting parameters on queries
Description Substitution of parameters is not in 3.0.18

Sample code:

queryString = "SELECT o FROM Audit o WHERE o.client = 'alice' AND (o.time > :mytime )"
Query query = em.createQuery(queryString);
query.setParameter("mytime", time, TemporalType.TIME);

audits = (List<Audit>) query.listResults();

Generates a stack trace. looking at the src its clear this is not complete yet.

resin-3.0.18/modules/resin/src/com/caucho/amber/ejb3/QueryImpl.java

  /**
   * Sets a date parameter.
   */
  public Query setParameter(String name, Date value, TemporalType type)
  {
    return this;
  }

When is this expected?
Steps To Reproduce
Additional Information
Attached Files

- Relationships

- Notes
(0001496)
westrupp
09-01-06 10:27

Implemented and tested (jpa/10e8). (Rodrigo Westrupp)
 

- Issue History
Date Modified Username Field Change
04-20-06 04:48 keith New Issue
09-01-06 10:27 westrupp Status new => closed
09-01-06 10:27 westrupp Note Added: 0001496
09-01-06 10:27 westrupp Resolution open => fixed
09-01-06 10:27 westrupp Fixed in Version  => 3.1.0


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker