Project

General

Profile

Bug #4325

Not flushing the newly created record to the database

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

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
09/14/2019
Due date:
% Done:

0%

billable:
No
vendor_id:
GCD
case_num:
version:

flush.p Magnifier (190 Bytes) Stanislav Lomany, 09/14/2019 05:05 PM

flush-crle.p Magnifier (206 Bytes) Stanislav Lomany, 09/14/2019 05:05 PM


Related issues

Related to User Interface - Feature #3940: CREATE-RESULT-LIST-ENTRY() method support Closed

History

#1 Updated by Stanislav Lomany over 4 years ago

  • Related to Feature #3940: CREATE-RESULT-LIST-ENTRY() method support added

#2 Updated by Stanislav Lomany over 4 years ago

In the following sequence

open query q preselect each tt.

create tt. tt.f1 = 1.
query q:create-result-list-entry.
get first q.

first fails to load the recently created record into the buffer. PreselectQuery.coreFetch -> Persistence.load tries to load the record into the buffer which already contains the target record. It fails because Session.get returns null. Any ideas?

This sequence works:

...
release tt.
get first q.

It is suspected that we are not flushing the newly created record to the database properly in this sequence, whereas the release forces a flush.

flush.p presumably demonstrates the same problem with the current trunk.
flush-crlw.p requires testcase to be run on 3816a (until it is merged to trunk).

Also available in: Atom PDF