Project

General

Profile

Feature #2161

Changing UNDO attribute of dynamic table

Added by Stanislav Lomany over 10 years ago. Updated over 10 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
08/12/2013
Due date:
% Done:

0%

billable:
No
vendor_id:
GCD
version:

Related issues

Related to Database - Feature #1652: add conversion and runtime support for dynamically prepared temp-tables Closed 04/11/2013 06/18/2013

History

#1 Updated by Stanislav Lomany over 10 years ago

UNDO attribute can be changed (and takes effect!) after a table has been prepared. I'll leave this "feature" for future releases. Testcase:

def var th1 as handle no-undo.

create temp-table th1.
th1:add-new-field("field1", "integer").
th1:temp-table-prepare("table1").
th1:default-buffer-handle:buffer-create.

th1:undo = true.

blk:
do transaction:
   th1:default-buffer-handle:buffer-field("field1"):buffer-value = 123.
   undo blk, leave blk.
end.

message th1:default-buffer-handle:buffer-field("field1"):buffer-value. /* output is "0" */

#2 Updated by Eric Faulhaber over 10 years ago

  • Parent task deleted (#1652)

Also available in: Atom PDF