File tree 1 file changed +2
-2
lines changed
src/Microsoft.Data.SqlClient/netfx/src/Microsoft/Data/SqlClient
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3043,7 +3043,7 @@ virtual public int GetSqlValues(object[] values)
3043
3043
3044
3044
for ( int i = 0 ; i < copyLen ; i ++ )
3045
3045
{
3046
- values [ _metaData . GetVisibleColumnIndex ( i ) ] = GetSqlValueInternal ( i ) ;
3046
+ values [ i ] = GetSqlValueInternal ( _metaData . GetVisibleColumnIndex ( i ) ) ;
3047
3047
}
3048
3048
return copyLen ;
3049
3049
}
@@ -3487,7 +3487,7 @@ override public int GetValues(object[] values)
3487
3487
// If this is sequential access, then we need to wipe the internal buffer
3488
3488
if ( ( sequentialAccess ) & & ( i < maximumColumn ) )
3489
3489
{
3490
- _data [ i ] . Clear ( ) ;
3490
+ _data [ fieldIndex ] . Clear ( ) ;
3491
3491
if ( fieldIndex > i && fieldIndex > 0 )
3492
3492
{
3493
3493
// if we jumped an index forward because of a hidden column see if the buffer before the
You can’t perform that action at this time.
0 commit comments