P
Peter Judge
Guest
If you are passing TT data inside a persistent proc (between IP’s) then the TT is not passed by value. If you pass between .P’s (and classes) then you make a deep copy. I’m not sure what happens with SUPER-PROCEDUREs. You can verify this via the TEMP-TABLES log-entry-type. See attached test code. This produces a log like the below. You can see 2 temp-tables created – one in each .P. [18/01/19@10:30:07.538-0500] P-014820 T-008476 2 4GL TEMP-TABLE Created TEMP-TABLE ttData (ID:7 NO-UNDO Indexes:1) C:\ devarea \views\pjudge_OE117\vobs_possenet\tests\test_pp_tt.p @ 34 [18/01/19@10:30:07.538-0500] P-014820 T-008476 1 4GL APPL IN P1 [18/01/19@10:30:07.538-0500] P-014820 T-008476 1 4GL APPL IN P2 [18/01/19@10:30:07.538-0500] P-014820 T-008476 1 4GL APPL IN P3 [18/01/19@10:30:07.538-0500] P-014820 T-008476 1 4GL APPL IN P4 [18/01/19@10:30:07.554-0500] P-014820 T-008476 1 4GL APPL NOW EXTERNAL [18/01/19@10:30:07.554-0500] P-014820 T-008476 2 4GL TEMP-TABLE Created TEMP-TABLE ttData (ID:8 NO-UNDO Indexes:1) p1 test_pp_tt2.p [18/01/19@10:30:07.554-0500] P-014820 T-008476 1 4GL APPL EXTERNAL START [18/01/19@10:30:07.554-0500] P-014820 T-008476 1 4GL APPL EXTERNAL END
Continue reading...
Continue reading...