github-code-scanning[bot] commented on code in PR #14236:
URL: https://github.com/apache/druid/pull/14236#discussion_r1189122859


##########
sql/src/test/java/org/apache/druid/sql/avatica/DruidAvaticaHandlerTest.java:
##########
@@ -1260,6 +1260,26 @@
     }
   }
 
+  @Test
+  public void testNamedParameterBinding() throws SQLException
+  {
+    try (PreparedStatement statement = client.prepareStatement("SELECT 
COUNT(*) AS cnt FROM druid.foo WHERE dim1 = :val OR dim1 = :otherval")) {
+      statement.setString(1, "abc");
+      statement.setString(2, "def");
+      Map<String, Object> namedParamMap = new HashMap<>();

Review Comment:
   ## Container contents are never accessed
   
   The contents of this container are never accessed.
   
   [Show more 
details](https://github.com/apache/druid/security/code-scanning/4933)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to