Fix parameter meta data with whitespace characters#351
Fix parameter meta data with whitespace characters#351xiangyushawn wants to merge 6 commits intomicrosoft:devfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #351 +/- ##
============================================
+ Coverage 37.23% 37.33% +0.09%
- Complexity 1666 1701 +35
============================================
Files 103 103
Lines 23667 23669 +2
Branches 3880 3881 +1
============================================
+ Hits 8813 8837 +24
- Misses 13261 13277 +16
+ Partials 1593 1555 -38
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## dev #351 +/- ##
===========================================
+ Coverage 37.23% 37.4% +0.16%
- Complexity 1666 1704 +38
===========================================
Files 103 103
Lines 23667 23671 +4
Branches 3880 3882 +2
===========================================
+ Hits 8813 8854 +41
- Misses 13261 13263 +2
+ Partials 1593 1554 -39
Continue to review full report at Codecov.
|
|
I was just looking at the PR and it occurred to me that it might still not handle tabs correctly since I did not see those in the delimiter sets that were modified. I didn't provide separate test cases for those but I mentioned it in the comments. The tests would just be the same as the ones I showed but with tab characters of course. I'm not sure what characters the server accepts as delimiters, but it might be worth seeing if there are any other characters that might be missing. |
|
@chadberchek thank you very much for the excellent finding. As you suggested, I added support for tab and form feed. I think that should be all the whitespaces we need to support. I am going to add your test code into our test suite. Thank you. |
|
Test is added now. @chadberchek again, I very appreciate the test you provided. |
|
|
||
| @AfterAll | ||
| public static void dropTables() throws SQLException { | ||
| stmt.execute("if object_id('" + tableName + "','U') is not null" + " drop table " + tableName); |
There was a problem hiding this comment.
Please use Utils.dropObjectIfExists(tableName,"IsTable",stmt) function to drop table.
|
new PR #371 is created to get rid of Revert-MetadataCaching |
Fixes #344