Subject | [IBO] Suggested change to IBOPipeline |
---|---|
Author | Paul Hope |
Post date | 2003-06-06T15:45:59Z |
Hi
For those interested in the IBOPipeline I suggest a change to
GetFieldDataType.
I found that if the the connected query is a long runner then setting
AutoCreateFields or double clicking the pipeline locks Delphi for a long
time. It appears to do so because GetFieldDataType opens the query when a
prepare would do.
Suggested replacement . .
function TppIBOPipeline.GetFieldDataType(AFieldName: string): TppDataType;
begin
{Prepare/open dataset to allow access to required info...}
if Assigned(FDataSet) then // haven't tried it if its not assigned!
begin
if not FDataset.prepared then
CheckDataSetPrepared;
end;
It appears to work for me - any comments?
Regards
Paul
For those interested in the IBOPipeline I suggest a change to
GetFieldDataType.
I found that if the the connected query is a long runner then setting
AutoCreateFields or double clicking the pipeline locks Delphi for a long
time. It appears to do so because GetFieldDataType opens the query when a
prepare would do.
Suggested replacement . .
function TppIBOPipeline.GetFieldDataType(AFieldName: string): TppDataType;
begin
{Prepare/open dataset to allow access to required info...}
if Assigned(FDataSet) then // haven't tried it if its not assigned!
begin
if not FDataset.prepared then
CheckDataSetPrepared;
end;
It appears to work for me - any comments?
Regards
Paul