Subject | Re: [IBO] IB_Query phenomenom |
---|---|
Author | Jason Wharton |
Post date | 2001-01-02T20:36:49Z |
> > Yes, this solves the problem. This is the one limitation that I imposeon
> > people to have all of the benefits that IBO offers is to:declarative
> >
> > DON'T PUT JOIN CRITERIA IN THE WHERE CLAUSE, EVER.
> >
> > Either use the JoinLinks property or use the FROM ... JOIN ...
> > syntax for JOINs.Yes, because IBO does a lot of internal parsing together of SQL statements
> OK, I will do so. Can you briefly explain to me, why I should not put join
> criteria in the where clause ?
for various things and it needs to be able to distinguish between normal
WHERE clause stuff and that which is intended to create a JOIN between
relations. If you put JOIN criteria in a WHERE clause it gets lost in
internal statements because I strip off the where clause for certain things.
This leads to other problems that are detected by the multiple rows in
singleton fetch error. In other cases, such as yours, it results in
incorrect results from the query.
Regards,
Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com