We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5eadab9 commit 50cfcf7Copy full SHA for 50cfcf7
Provider/src/FirebirdSql.Data.FirebirdClient/FirebirdClient/FbDataReader.cs
@@ -412,12 +412,12 @@ public override int GetValues(object[] values)
412
CheckState();
413
CheckPosition();
414
415
- for (var i = 0; i < _fields.Count; i++)
+ var count = Math.Min(_fields.Count, values.Length);
416
+ for (var i = 0; i < count; i++)
417
{
418
values[i] = CheckedGetValue(() => GetValue(i));
419
}
-
420
- return values.Length;
+ return count;
421
422
423
public override bool GetBoolean(int i)
0 commit comments