-
Notifications
You must be signed in to change notification settings - Fork 430
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issue with SQLServerBulkCopy from CSV with setEscapeColumnDelim…
…erts set to true (#2575) * Fixed issue with SQLServerBulkCopy from CSV for setEscapeColumnDelimitersCSV * Fixed scenario with last line having blank content * Simplied if condition * Changed sb.isEmpty to sb.toString().isEmpty() * Use length instead of toString * Added dropTable in finally block.
- Loading branch information
Showing
3 changed files
with
75 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
src/test/resources/BulkCopyCSVTestInputDelimiterEscapeNoNewLineAtEnd.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
1@"test"@ " test"""@ "no@split" @ testNoQuote@ | ||
2@""@ ""@ ""@ ""@ | ||
3@""""@ "test""test"@ "test@"" test"@ ""@ | ||
4@testNoQuote @ testSpaceAround @ " testSpaceInside "@ " testSpaceQuote"" "@ | ||
5@""@ ""@ ""@ " testSpaceInside "@ | ||
6@1997@Ford@E350@E63@ | ||
7@"1997"@"Ford"@"E350"@"E63"@ | ||
8@1997@Ford@E350@"Super@ luxurious truck"@ | ||
9@1997@Ford@E350@"Super@ ""luxurious"" truck"@ | ||
10@1997@ "Ford" @E350@ "E63"@ | ||
11@1997@Ford@E350@" Super luxurious truck "@ | ||
12@1997@"F | ||
o | ||
r | ||
d"@"E350"@"""Super"" ""luxurious"" ""truck"""@ |