mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-27 14:30:41 +02:00
* Added check for circular datasource reference in case datasource not nil
git-svn-id: trunk@8168 -
This commit is contained in:
parent
9bc1c04688
commit
a093c52815
@ -1413,7 +1413,7 @@ begin
|
||||
DS:=DataSource;
|
||||
If (AValue<>DS) then
|
||||
begin
|
||||
If (AValue.Dataset=Self) then
|
||||
If Assigned(AValue) and (AValue.Dataset=Self) then
|
||||
DatabaseError(SErrCircularDataSourceReferenceNotAllowed,Self);
|
||||
If Assigned(DS) then
|
||||
DS.RemoveFreeNotification(Self);
|
||||
|
Loading…
Reference in New Issue
Block a user