Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BulkCopy ColumnMapping test #127

Merged
merged 4 commits into from
Jan 27, 2017
Merged

BulkCopy ColumnMapping test #127

merged 4 commits into from
Jan 27, 2017

Conversation

ahmad-ibra
Copy link

Add junit test cases for bulkCopy column mapping

* @param expectedValue
* @param actualValue
*/
private void compareSourceDest(int dataType, Object expectedValue, Object actualValue){
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we use the same method in BulkCopyTestUtil?

Copy link
Author

@ahmad-ibra ahmad-ibra Jan 27, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes it can be used, modified test code to use it

finally {
if(dropDest){
stmt.dropTable(destinationTable);
con.close();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's close con and stmt out of if( dropDest ) check.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The if(dropDest) condition is because some destination tables require further validation after performBulkCopy method.

i've moved con.close() to outside the if statement

@ahmad-ibra ahmad-ibra merged commit a4db3c0 into microsoft:dev Jan 27, 2017
@lilgreenbird lilgreenbird added this to Closed/Merged PRs in MSSQL JDBC Apr 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
MSSQL JDBC
  
Closed/Merged PRs
Development

Successfully merging this pull request may close these issues.

None yet

2 participants