You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is incorrect logging in the method SQLServerPreparedStatement#executeBatch of the rows which were affected. Variable updateCounts is of array type and method Logger#exiting is used, which accepts Object as the last parameter and it then is wrapped into array in exiting method itself, therefore in logs it appears as array string representation: [I@1ce386b2.
Example output
Aug 10, 2023 2:29:17 PM com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement:15 executeBatch
FINER: RETURN [I@1ce386b2
The text was updated successfully, but these errors were encountered:
this is in quite a few places and is just a 1 liner entering/exiting log. What would you expect to see in this case or are you suggesting to simply remove the object from the log line?
lilgreenbird
added
Enhancement
An enhancement to the driver. Lower priority than bugs.
and removed
Question
Used when a question is asked, as opposed to an issue being raised
labels
Aug 23, 2023
as mentioned this is in quite a few places agree it's an annoyance I've marked this as an enhancement and included in our backlog. Please note this is low priority so will be bumped by other higher priority issues.
Driver version
12.4.0
Problem description
There is incorrect logging in the method SQLServerPreparedStatement#executeBatch of the rows which were affected. Variable
updateCounts
is of array type and methodLogger#exiting
is used, which acceptsObject
as the last parameter and it then is wrapped into array inexiting
method itself, therefore in logs it appears as array string representation: [I@1ce386b2.Example output
The text was updated successfully, but these errors were encountered: