4 Replies Latest reply on Jan 25, 2012 8:57 PM by Steven Hawkins

    Custom SQLWarning

    Andriy Rokhmanov Newbie

      Hi,

       

      I want to pass some custom data from my translator back to application using SQLWarning. Basically, this is what I have in my ...Execution class:

       

          public void execute() throws TranslatorException
          {
              try
              {
                   SQLWarning message = new SQLWarning("inner");
                   SQLWarning wrapper = new SQLWarning("outer");
                   wrapper.setNextWarning(message);
                   this.context.addWarning(wrapper);
                ...
      
      

      On my attempt to retrieve this SQLWarnings on application level, the statement.getWarnings() gives me back the PartialResultsWarning (with the PartialResultsWarning.failures Map populated with the "outer" SQLWarning). The "inner" warning is completely missing.

       

      What will be the proper way to pass the custom SQLWarning back to application?