Try to prevent inner exception at the end of TMySQLQuery.Col. Hopefully reveals a more meaningful error message for issue #904

This commit is contained in:
Ansgar Becker
2020-12-17 12:46:26 +01:00
parent ca2433b0cd
commit 148b04e2d4

View File

@@ -7428,7 +7428,10 @@ end;
function TDBQuery.ColumnCount: Integer;
begin
Result := ColumnNames.Count;
if Assigned(FColumnNames) then
Result := FColumnNames.Count
else
Result := -1;
end;