Subject | Re: [IBO] IBO Doesn't like this query |
---|---|
Author | Helen Borrie |
Post date | 2002-08-22T07:52:52Z |
At 12:18 AM 22-08-02 -0700, you wrote:
your example have been disallowed since beta 2.
Links you supplied. /* BIND_0 */ is just a comment indicating an internal
variable that a parameter value is bound to - very likely the linking
parameter for the detail set, e.g. the key you supplied via the detail
set's MasterFields property.
This will be problemmatical, because PRODBARCODE is not a unique key in the
master set.
Helen
> > >It is a valid SQL statement, so itThen it must be a very old version of Firebird. Ambiguous queries like
> > >should work, right?
> >
> > It's an ambiguous query, to begin with, but if you are not using Firebird
> > then you will probably be allowed to submit it.
>
>I am using Firebird, and it DOES allow me to submit it.
your example have been disallowed since beta 2.
> > This is the correct syntax:That is the limiting clause constructed by the IBO parser based on the some
> >
> > select * from products p
> > left outer join vendorproducts v on
> > p.prodbarcode=v.vpupc
> > and p.prodsource=v.vpvendor
> > where v.vpcost = 0
> > or v.vpcost is null
> > WHERE p.PRODBARCODE=? /* BIND_0 */
>
>That last line was not part of my original query. IBO is generating that part
>(for the master-detail maybe?). What is that ? /* BIND_0 */ about anyway?
Links you supplied. /* BIND_0 */ is just a comment indicating an internal
variable that a parameter value is bound to - very likely the linking
parameter for the detail set, e.g. the key you supplied via the detail
set's MasterFields property.
This will be problemmatical, because PRODBARCODE is not a unique key in the
master set.
Helen