* Cursor can be nil, patch from Mattias Gaertner

git-svn-id: trunk@48702 -
This commit is contained in:
michael 2021-02-17 21:07:57 +00:00
parent 599ba8cc2a
commit 2da4113310

View File

@ -3137,7 +3137,7 @@ begin
UpdateServerIndexDefs;
FStatement.Execute;
if not Cursor.FSelectable then
if (Cursor=nil) or (not Cursor.FSelectable) then
DatabaseError(SErrNoSelectStatement,Self);
// InternalInitFieldDef is only called after a prepare. i.e. not twice if