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

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Closed Closed
        3d 6h 29m 1 Dag H. Wanvik 13/Dec/10 22:49
        Gavin made changes -
        Workflow jira [ 12539859 ] Default workflow, editable Closed status [ 12800313 ]
        Rick Hillegas made changes -
        Affects Version/s 10.8.1.2 [ 12316362 ]
        Affects Version/s 10.8.1.1 [ 12316356 ]
        Fix Version/s 10.8.1.2 [ 12316362 ]
        Fix Version/s 10.8.1.1 [ 12316356 ]
        Rick Hillegas made changes -
        Affects Version/s 10.8.1.1 [ 12316356 ]
        Affects Version/s 10.8.1.0 [ 12315561 ]
        Fix Version/s 10.8.1.1 [ 12316356 ]
        Fix Version/s 10.8.1.0 [ 12315561 ]
        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.
        Dag H. Wanvik made changes -
        Fix Version/s 10.8.0.0 [ 12315561 ]
        Issue & fix info [Patch Available, Newcomer] [Newcomer]
        Dag H. Wanvik made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        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
        Bryan Pendleton added a comment -

        +1, looks great.

        Show
        Bryan Pendleton added a comment - +1, looks great.
        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
        Dag H. Wanvik made changes -
        Issue & fix info [Newcomer] [Newcomer, Patch Available]
        Dag H. Wanvik made changes -
        Assignee Dag H. Wanvik [ dagw ]
        Dag H. Wanvik made changes -
        Attachment rrefsqljtruncatetable.html [ 12466005 ]
        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.
        Dag H. Wanvik made changes -
        Attachment derby-4943-a.diff [ 12466004 ]
        Dag H. Wanvik made changes -
        Attachment derby-4943-a.diff [ 12466003 ]
        Dag H. Wanvik made changes -
        Field Original Value New Value
        Attachment derby-4943-a.diff [ 12466003 ]
        Dag H. Wanvik created issue -

          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