mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Avoid an access violation within a for loop which got run once even when there were 0 columns in a result.
This commit is contained in:
@@ -1428,7 +1428,7 @@ begin
|
||||
|
||||
with ResultSet.GetMetadata do
|
||||
begin
|
||||
for I := 1 to GetColumnCount do
|
||||
if GetColumnCount > 0 then for I := 1 to GetColumnCount do
|
||||
begin
|
||||
FieldType := ConvertDbcToDatasetType(GetColumnType(I));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user