Subject | RE: [IBO] Bug? TIB_Query.locate - AbortFetching failing |
---|---|
Author | Jason Wharton |
Post date | 2007-08-08T18:31:43Z |
Jason,
What happens is when going into processing the locate I copy the value of
the FetchingAbortGen variable. As long as someone doesn't abort fetching
then that value will remain consistent. As soon as someone aborts the query
then this sequence is increased and that will indicate the query was aborted
and that execution should be discontinued.
You should have the code like this:
if ( FAGen <> FetchingAbortedGen ) then Break
else SysLookupNodeList;
Please fix it and let me know if that solves your original problem.
Thanks,
Jason Wharton
> I gave it a try with the correct logic :-)Apparently you don't understand how that works...
>
> if ( FAGen = FetchingAbortedGen ) then Break
> else SysLookupNodeList
What happens is when going into processing the locate I copy the value of
the FetchingAbortGen variable. As long as someone doesn't abort fetching
then that value will remain consistent. As soon as someone aborts the query
then this sequence is increased and that will indicate the query was aborted
and that execution should be discontinued.
You should have the code like this:
if ( FAGen <> FetchingAbortedGen ) then Break
else SysLookupNodeList;
Please fix it and let me know if that solves your original problem.
Thanks,
Jason Wharton