Re: [OJB-developers] [ann] new release
Brought to you by:
thma
From: Jakob B. <jbr...@ho...> - 2002-01-14 07:49:42
|
hi, i have a problem using OQL. when i try to run the following qurty with a between criteria query.create("select persons from brj.ojb.Person where test between $1 and $2 and name like $3"); query.bind(new Integer(80)); query.bind(new Integer(100)); query.bind("%er"); i get the following error: org.odmg.QueryParameterCountInvalidException at ojb.odmg.oql.OQLQueryImpl.bind(OQLQueryImpl.java:122) at brj.ojb.TestODMG.queryBetween(TestODMG.java:67) at brj.ojb.TestODMG.run(TestODMG.java:88) at brj.ojb.TestODMG.main(TestODMG.java:26) the problem comes imho from OQLQueryImpl.bind(Oject parameter) ... SelectionCriteria crit = (SelectionCriteria) this.bindIterator.next(); crit.bind(parameter); ... when binding a between criteria the bindIterator should not be advanced after the first parameter. jakob ----- Original Message ----- From: "Thomas Mahler" <tho...@ho...> To: "ojb" <obj...@li...> Sent: Sunday, January 13, 2002 11:19 AM Subject: [OJB-developers] [ann] new release > Hi all, > > I just released a new release. There are some new features and a lot of > bug fixes. > > Simon provided a complete rewrite of the OQL parser. All OQL related > bugs should be fixed and some cool new things like subselects are > possible now! Thank you Simon! > > > There had been a request regarding batch operation with OJB. I fixed the > ObjectModification mechanism and rewrote the PerformanceTest to have a > separate view on broker.store(obj,true), broker.store(obj,false), > broker.getObjectByIdentity(...), broker.delete(obj) performance. > > Just try build.sh performance to see how long it takes to insert, > update, select, delete 5000 objects. You can even change the build.xml > file to increase the number of objects. > > > From the release notes: > > Changes in Release 0.7.310 > > new features: > - Support loading of OJB.properties and repository.xml as resources > through a ClassLoader > - Implement IS NULL for OQL Queries > - Integrate new Criteria into OQL Parser > - TestCase for named roots map and Dlist > - TestCase for OQL Path expressions > - JNDI lookup of JDBC Connections now completely configured through > repository.xml > > bug fixes: > - Bugs in FK assignment and superfluous calls to broker.store() > - Bug in RsIterator::releaseDbResources > - Repair ObjectModification mechanism > - Identities must always refer to toplevel extent class or interface > - Bug in Named Roots Unbind > - Fix db-setup.sql for DB2 and Oracle > - Schema attribute belongs to table not to JDBCDescriptor ! > - Fix bugs in OQL Parser (reading ints etc.) > - Bug in MetaObjectCacheImpl > - Made CollectionProxies client/server ready > > refactorings: > - Rewrote PerformanceTest to allow separate evaluation of insert, > update, select and delete operations > > > cheers, > > Thomas > > > _______________________________________________ > Objectbridge-developers mailing list > Obj...@li... > https://lists.sourceforge.net/lists/listinfo/objectbridge-developers > |