Derby
  1. Derby
  2. DERBY-4943

TRUNCATE TABLE docs should state that it doesn't work for temporary tables

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 10.7.1.1, 10.7.1.4, 10.8.1.2
    • Fix Version/s: 10.8.1.2
    • Component/s: Documentation
    • Labels:
      None
    • Issue & fix info:
      Newcomer

      Description

      ij> declare global temporary table t(i int) on commit preserve rows not logged;
      0 rows inserted/updated/deleted
      ij> insert into session.t values 1,2,3,4,5,6,7,8,9,10;
      10 rows inserted/updated/deleted
      ij> truncate table session.t;
      ERROR 42995: The requested function does not apply to global temporary tables.

      This limitation is not documented presently.

      1. rrefsqljtruncatetable.html
        3 kB
        Dag H. Wanvik
      2. derby-4943-a.diff
        0.7 kB
        Dag H. Wanvik

        Activity

        Hide
        Dag H. Wanvik added a comment -

        Uploading a patch and a sample html file for ease of review.

        Show
        Dag H. Wanvik added a comment - Uploading a patch and a sample html file for ease of review.
        Hide
        Kim Haase added a comment -

        Good catch, Dag, and the patch looks perfect.

        +1

        Show
        Kim Haase added a comment - Good catch, Dag, and the patch looks perfect. +1
        Hide
        Bryan Pendleton added a comment -

        +1, looks great.

        Show
        Bryan Pendleton added a comment - +1, looks great.
        Hide
        Dag H. Wanvik added a comment -

        Thanks for looking at this!
        Patch committed as svn 1045405, closing.

        Show
        Dag H. Wanvik added a comment - Thanks for looking at this! Patch committed as svn 1045405, closing.
        Hide
        Dag H. Wanvik added a comment -

        Backported fix to 10.7 branch as svn 1045415.

        Show
        Dag H. Wanvik added a comment - Backported fix to 10.7 branch as svn 1045415.

          People

          • Assignee:
            Dag H. Wanvik
            Reporter:
            Dag H. Wanvik
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development