SDAC and FastReport 4
Posted: Thu 30 May 2013 23:42
Hello,
I have very very strange behavior of the frxQuery, when setting or reading property SQL.
This is your code in frxDACComponents.pas:
So, your definition of AssignStrings is (Source, Destination).
Therefore, both functions should be wrong, they should be:
If I change both I get an stack overflow, if I change only SetSQL I can set the SQL Query and display data, but can not read the SQL Statement (of course).
So, please, can you tell me, why there is an stack overflow when changing both? Is there any other place in source it is corresponding with?
Best regards
Hans
I have very very strange behavior of the frxQuery, when setting or reading property SQL.
This is your code in frxDACComponents.pas:
Code: Select all
function TfrxDACQuery.GetSQL: Tstrings;
var
i: Integer;
begin
AssignStrings(FSQL, FQuery.SQL);
Result := FSQL;
end;
procedure TfrxDACQuery.SetSQL(Value: Tstrings);
begin
AssignStrings(FQuery.SQL, Value);
end;
Therefore, both functions should be wrong, they should be:
Code: Select all
function TfrxDACQuery.GetSQL: Tstrings;
var
i: Integer;
begin
AssignStrings(FQuery.SQL, FSQL);
Result := FSQL;
end;
procedure TfrxDACQuery.SetSQL(Value: Tstrings);
begin
AssignStrings(Value, FQuery.SQL);
end;
So, please, can you tell me, why there is an stack overflow when changing both? Is there any other place in source it is corresponding with?
Best regards
Hans