File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
src/Microsoft.Data.SqlClient
netcore/src/Microsoft/Data/SqlClient
netfx/src/Microsoft/Data/SqlClient Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -578,8 +578,8 @@ private string AnalyzeTargetAndCreateUpdateBulkCommand(BulkCopySimpleResultSet i
578
578
579
579
// Are we missing a mapping between the result column and
580
580
// this local column (by ordinal or name)?
581
- if ( ! ( localColumn . _destinationColumnOrdinal = = metadata . ordinal
582
- || UnquotedName ( localColumn . _destinationColumnName ) == metadata . column ) )
581
+ if ( localColumn . _destinationColumnOrdinal ! = metadata . ordinal
582
+ && UnquotedName ( localColumn . _destinationColumnName ) != metadata . column )
583
583
{
584
584
// Yes, so move on to the next local column.
585
585
continue ;
@@ -596,7 +596,7 @@ private string AnalyzeTargetAndCreateUpdateBulkCommand(BulkCopySimpleResultSet i
596
596
//
597
597
// We will not process timestamp or identity columns.
598
598
//
599
- if ( ( metadata . type == SqlDbType . Timestamp )
599
+ if ( metadata . type == SqlDbType . Timestamp
600
600
|| ( metadata . IsIdentity && ! IsCopyOption ( SqlBulkCopyOptions . KeepIdentity ) ) )
601
601
{
602
602
rejected = true ;
Original file line number Diff line number Diff line change @@ -613,8 +613,8 @@ private string AnalyzeTargetAndCreateUpdateBulkCommand(BulkCopySimpleResultSet i
613
613
614
614
// Are we missing a mapping between the result column and
615
615
// this local column (by ordinal or name)?
616
- if ( ! ( localColumn . _destinationColumnOrdinal = = metadata . ordinal
617
- || UnquotedName ( localColumn . _destinationColumnName ) == metadata . column ) )
616
+ if ( localColumn . _destinationColumnOrdinal ! = metadata . ordinal
617
+ && UnquotedName ( localColumn . _destinationColumnName ) != metadata . column )
618
618
{
619
619
// Yes, so move on to the next local column.
620
620
continue ;
@@ -631,7 +631,7 @@ private string AnalyzeTargetAndCreateUpdateBulkCommand(BulkCopySimpleResultSet i
631
631
//
632
632
// We will not process timestamp or identity columns.
633
633
//
634
- if ( ( metadata . type == SqlDbType . Timestamp )
634
+ if ( metadata . type == SqlDbType . Timestamp
635
635
|| ( metadata . IsIdentity && ! IsCopyOption ( SqlBulkCopyOptions . KeepIdentity ) ) )
636
636
{
637
637
rejected = true ;
You can’t perform that action at this time.
0 commit comments