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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: 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.

        Attachments

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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: