-
Notifications
You must be signed in to change notification settings - Fork 322
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
fix: use int to record string length instead of map #2044
Conversation
Signed-off-by: mango <[email protected]>
Codecov Report
@@ Coverage Diff @@
## main #2044 +/- ##
============================================
+ Coverage 75.66% 75.71% +0.04%
Complexity 347 347
============================================
Files 615 615
Lines 116794 116901 +107
Branches 1015 1015
============================================
+ Hits 88378 88513 +135
+ Misses 28207 28179 -28
Partials 209 209
Continue to review full report at Codecov.
|
Signed-off-by: mango <[email protected]>
@@ -367,9 +367,7 @@ public void testInsertPreparedState(SqlExecutor router) { | |||
insert = "insert into tsql1010 values(?, ?, ?, ?, ?);"; | |||
PreparedStatement impl3 = router.getInsertPreparedStmt(dbname, insert); | |||
impl3.setLong(1, 1003); | |||
impl3.setString(3, "zhejiangxx"); |
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.
Mind that do not delete these lines
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.
Got, I think use List
or Map
more better instead of int
, because we want to implement multiple set and save the last value. So this issue and PR may unnecessary
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, reverted
Signed-off-by: mango <[email protected]>
Signed-off-by: mango <[email protected]>
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.
LGTM
Signed-off-by: mango [email protected]
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Bug fix
What is the current behavior? (You can also link to an open issue here)
Fixed Use int value to record string length instead of Map in
InsertPreparedStatementImpl
#1979What is the new behavior (if this is a feature change)?
None