AW: [OJB-developers] OJB OQL
Brought to you by:
thma
From: Mahler T. <tho...@it...> - 2002-02-20 08:03:59
|
Hi Jakob, thanks for the patch! I'm also no ANTLR and OQL expert but I will check your patch and = integrate it into the distribution. What about your CVS problems? Did you get things running? cu, Thomas > -----Urspr=FCngliche Nachricht----- > Von: Jakob Braeuchi [mailto:jbr...@ho...] > Gesendet: Mittwoch, 20. Februar 2002 08:31 > An: Objectbridge Developers List (E-mail) > Betreff: [OJB-developers] OJB OQL >=20 >=20 > hi, >=20 > this patch fixes problems with OQL nil and between. >=20 > query.create("select persons from brj.ojb.Person where=20 > geburtsDatum =3D nil"); >=20 > here the grammer was going into the equalityExpr method and did not > recognize "nil". >=20 > query.create("select persons from brj.ojb.Person where test=20 > between $1 and > $2 and name like $3"); > query.bind(new Integer(80)); > query.bind(new Integer(100)); > query.bind("%er"); >=20 > in this case the bind assumed that each criterion should have only = one > parameter > and looked for three criteria in the above example. >=20 > i have to admit i'm neither an antlr nor an oql expert ! >=20 > jakob >=20 |