2 Replies Latest reply on Jul 14, 2015 7:07 PM by anilnair

    setting payload using Prepared statement

    anilnair

      Hi All,

      I using teiid client to connect and I am passing payload while using statements as shown below

      Statement statement = connection.createStatement();
      TeiidStatement tStatement=(TeiidStatement) statement.unwrap(TeiidStatement.class);
       //Passing the input values for the sp to be executed 
      tStatement.setPayload("521DF461");
      ResultSet rs = tStatement.executeQuery(sql);
      

       

      Now I would like to pass the payload while using  PreparedStatement

      I tried TeiidPreparedStatement but it does not have setPayload method.

      Thanks

      Anil