Subject RE: [IBO] Statement must have an IB_Connection assigned
Author Jason Wharton
> I have create a class for some Temporary Queries..
> type
> TPKIBQuery = class(TIBOQuery)"
>
> then create an SQL state as follows:
> lQryMisc := TPKIBQuery.Create(nil);
>
> Each time I get the prepare statement i get the following error:
> "Statement must have an IB_Connection assigned: <no name>"

Don't create a query with a NIL owner passed in.
Pass in either the TIB_Session or the TIBODatabase component.

Jason Wharton