Bug #4325
Not flushing the newly created record to the database
Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
09/14/2019
Due date:
% Done:
0%
billable:
No
vendor_id:
GCD
case_num:
version:
Related issues
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
- File flush-crle.p added
- File flush.p added
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).