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

Detailed prompt for Error XCL16 is different between Client and Embed

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 10.7.1.1
    • JDBC
    • None
    • Embedded/Client difference

    Description

      For the sql script below:

      create table t1(c11 int, c12 int);

      – insert data into tables
      insert into t1 values(1,1);
      insert into t1 values(2,2);

      – set autocommit off
      autocommit off;

      get with nohold cursor jdk1 as 'SELECT * FROM t1';

      – do fetches from the cursor
      next jdk1;

      --commit
      commit;

      – now try the fetch on cursor again after commit
      – cursors jdk1 will give Error XCL16
      next jdk1;

      – clean up.
      close jdk1;

      for the line "next jdk1;", an Error XCL16 will be thrown. However, detailed prompt for Error XCL16 is different between Client and Embed.
      In client mode, we get "ERROR XCL16: ResultSet not open. Verify that autocommit is OFF."
      While, in embed mode, we get "ERROR XCL16: ResultSet not open. Operation 'next' not permitted. Verify that autocommit is OFF."

      Attachments

        1. DERBY-4767.diff3
          23 kB
          Myrna van Lunteren
        2. derby-4767.patch
          33 kB
          Yun Lee
        3. derby-4767.stat
          0.6 kB
          Yun Lee
        4. DERBY-4767.stat3
          0.2 kB
          Myrna van Lunteren
        5. derby-4767-1.patch
          62 kB
          Yun Lee
        6. derby-4767-1.stat
          2 kB
          Yun Lee

        Issue Links

          Activity

            People

              yunlee Yun Lee
              yunlee Yun Lee
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: