Derby
  1. Derby
  2. DERBY-4767

Detailed prompt for Error XCL16 is different between Client and Embed

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10.7.1.1
    • Component/s: JDBC
    • Labels:
      None
    • Bug behavior facts:
      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."

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

        Issue Links

          Activity

            People

            • Assignee:
              Yun Lee
              Reporter:
              Yun Lee
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development