-
Notifications
You must be signed in to change notification settings - Fork 429
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
Tvp server cursor fix #234
Tvp server cursor fix #234
Conversation
} | ||
|
||
private static void dropTables() throws SQLException { | ||
stmt.executeUpdate("if object_id('" + srcTable + "','U') is not null" + " drop table " + srcTable); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use Utils.dropTableIfExists
to drop source & dest tables ?
*/ | ||
@Test | ||
public void testServerCursors() throws SQLException { | ||
conn = DriverManager.getConnection(connectionString); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add one test case for 3 result sets (2 TVPType and one Non-TVP) & 2 / 3 statements for these resultsets?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Codecov Report
@@ Coverage Diff @@
## dev #234 +/- ##
===========================================
+ Coverage 33.45% 34.4% +0.95%
- Complexity 1487 1551 +64
===========================================
Files 97 101 +4
Lines 23390 23656 +266
Branches 3840 3878 +38
===========================================
+ Hits 7824 8139 +315
+ Misses 14002 13917 -85
- Partials 1564 1600 +36
Continue to review full report at Codecov.
|
…sultSet.TYPE_FORWARD_ONLY and ResultSet.CONCUR_UPDATABLE
In ResultSet+storedProcedure+Cursor combination, no exception is thrown if there is no storedProcedure or if invalid/incompatible storedProcedure name is passed. |
@v-suhame fixed exception issue with invalid SP/TVP name |
|
||
// reset command status which have been overwritten | ||
if (tdsWritterCached) { | ||
command.setRequestComplete(false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of resetting them to default, it will be safe to catch original value of these 3 variables and reset them. Also update these values in synchronized way just as in the existing code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, thank you for the findings
fixes #224