title: Parameterized PreparedStatement for QUERY_BAND in Teradata JDBC
body: <p>When using QUERY_BAND whith paramitrized PreparedStatement, i got this exception :</p>
  <pre><code>java.sql.SQLException: [Teradata Database] [TeraJDBC 16.20.00.04] [Error 5992] [SQLState HY000] A syntax error was found in the QUERY_BAND.
  </code></pre>
  <p>My code :</p>
  <pre><code> String queryBand = &quot;SET QUERY_BAND = ? UPDATE FOR SESSION VOLATILE;&quot;;
   try {
   dbConnection = baseJDBCTemplate.getDataSource().getConnection();
          //set user name in the Query Band
          try (PreparedStatement stmt = dbConnection.prepareStatement(queryBand)) {
              stmt.setString(1, &quot;USER=x256;&quot;);//&quot;+rtId+&quot;
              stmt.execute(queryBand);
          }
   catch (SQLException e) {
          throw new SIRRestitGeneratorException(&quot;DB Exception &quot;,e);
   } 
  </code></pre>
  <p>i did the same thing recomanded n Teradata documentation
  <a href="https://docs.teradata.com/r/eWpPpcMoLGQcZEoyt5AjEg/RH2BOZYzHp6u4dhsrWbRlw" rel="nofollow noreferrer">https://docs.teradata.com/r/eWpPpcMoLGQcZEoyt5AjEg/RH2BOZYzHp6u4dhsrWbRlw</a></p>
  <p>i'm using
  Teradata version 16.20.00.04
  Spring Boot 1.5.8</p>