[OJB-developers] OJB OQL
Brought to you by:
thma
From: Jakob B. <jbr...@ho...> - 2002-02-20 07:31:24
|
hi, this patch fixes problems with OQL nil and between. query.create("select persons from brj.ojb.Person where geburtsDatum = nil"); here the grammer was going into the equalityExpr method and did not recognize "nil". 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"); in this case the bind assumed that each criterion should have only one parameter and looked for three criteria in the above example. i have to admit i'm neither an antlr nor an oql expert ! jakob |