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

    Custom SQLWarning

    Andriy Rokhmanov Newbie



      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
                   SQLWarning message = new SQLWarning("inner");
                   SQLWarning wrapper = new SQLWarning("outer");

      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?