mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
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:
@@ -7428,7 +7428,10 @@ end;
|
||||
|
||||
function TDBQuery.ColumnCount: Integer;
|
||||
begin
|
||||
Result := ColumnNames.Count;
|
||||
if Assigned(FColumnNames) then
|
||||
Result := FColumnNames.Count
|
||||
else
|
||||
Result := -1;
|
||||
end;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user