View Issue Details

IDProjectCategoryView StatusLast Update
0006026SymmetricDS ProBugpublic2023-12-01 20:57
Reporterpmarzullo Assigned Topmarzullo  
Prioritynormal 
Status closedResolutionfixed 
Product Version3.14.9 
Target Version3.14.10Fixed in Version3.14.10 
Summary0006026: SQL Server Bulk issue when batch column count is different than target table column count
DescriptionThe calculation of whether the columns from the batch file need to be reordered when running in BCP batch mode does not take into account when the number of columns in the table is less than the number of columns in the batch file.

The code checks to see if the number of columns in the batch and the target table are different. If so, then mark the flag that the columns need reordered.
But then it goes on and checks the names of each column from the batch and compares to the names of the columns in the table.
If the number of columns in the target table is less than the number of columns in the batch, then an ArrayIndexOutOfBoundsException is thrown because the number of elements in the array for the target table columns is too short and does not exist.
Steps To ReproduceBCP load a table at the target when the number of columns in the target table is less than the number of columns in the source table.
Additional InformationIf the number of columns is different between the batch and the target table, set the flag indicating that the columns need reordered and skip the column name comparison, which is not needed when the number of columns is different.
Tagsbulk, dialect: sql-server

Relationships

related to 0006027 closedpmarzullo SQL Server Bulk issue when batch column count is different than target table column count 

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2023-10-17 16:23 pmarzullo New Issue
2023-10-17 16:23 pmarzullo Status new => assigned
2023-10-17 16:23 pmarzullo Assigned To => pmarzullo
2023-10-17 16:23 pmarzullo Tag Attached: bulk
2023-10-17 16:23 pmarzullo Tag Attached: dialect: sql-server
2023-10-17 16:59 pmarzullo Status assigned => resolved
2023-10-17 16:59 pmarzullo Resolution open => fixed
2023-10-17 16:59 pmarzullo Fixed in Version => 3.15.1
2023-10-17 16:59 pmarzullo Fixed in Version 3.15.1 => 3.14.10
2023-10-27 20:06 admin Status resolved => closed
2023-12-01 20:57 elong Relationship added related to 0006027