* adds some checks to sqldb avoid AV and memleaks. Mantis #19326 and #18669

git-svn-id: trunk@19039 -
This commit is contained in:
marco 2011-09-09 18:13:03 +00:00
parent a9515e9446
commit 367be2cd7a

View File

@ -1200,11 +1200,11 @@ begin
try
FieldDefs.Clear;
if not Assigned(Database) then DatabaseError(SErrDatabasenAssigned);
TSQLConnection(Database).AddFieldDefs(fcursor,FieldDefs);
finally
FLoadingFieldDefs := False;
FCursor.FInitFieldDef := false;
if Assigned(FCursor) then FCursor.FInitFieldDef := false;
end;
end;