Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-159

When Derby runs in Network Server mode, client does not receive warnings generated by Derby - should get documented

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Normal
    • Repro attached

    Description

      A simple code below will demonstrate that warnings generated by Derby running in Server mode do not make their way to client. The client code below is trying to create the database db1drda which already exsits. Server generates a warning for that but the client cde below does not print it.

      con = DriverManager.getConnection("jdbc:derby:net://localhost:1527/db1drda;create=true:retrieveMessagesFromServerOnGetMessage=true;", "app", "app");
      SQLWarning warnings1 = con.getWarnings();
      System.out.println("database exists, should get warning");
      while (warnings1 != null)
      {
      System.out.println("warnings on connection = " + warnings1);
      warnings1 = warnings1.getNextWarning();
      }

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            chaase3 Camilla Haase
            mamtas Mamta A. Satoor
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment