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
Prevent crash in SQL Server's JDBC when tracing execute methods with generated keys (#9321)
* Prevent crash in SQL Server JDBC when tracing execute methods with generated keys
When tracing the JDBC statement execute methods, we prepend a comment to
the SQL query used for DBM trace propagation.
However, there is a bug in the SQL Server JDBC driver that prevents the
generated keys from being returned when the SQL comment is prepended to
the SQL query.
I decided to only append the comment in this specific case to avoid the
comment from being truncated.
@seemicrosoft/mssql-jdbc#2729
* remove dynamic typing when packing all the JDBC arguments
* move JDBC test on injection with generated keys to SQL Server file
* remove useless constant in StatementAdvice
Copy file name to clipboardExpand all lines: dd-java-agent/instrumentation/jdbc/src/main/java/datadog/trace/instrumentation/jdbc/StatementInstrumentation.java
+17-3Lines changed: 17 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -61,9 +61,6 @@ public String[] helperClassNames() {
0 commit comments