Closed asfernandes closed 11 months ago
This no-initialization may cause others problems unrelated with SKIP LOCKED
, but I'm not sure what exactly.
@@@ QA notes @@@ See test for #7350
The fix is incomplete, try to select more records in select_proc
, all 10 for example.
Or try to update records with id's (1, 2) before call select_proc
.
It looks like rpb_runtime_flags
should be cleared before every fetch, not on execution start only.
I think you were wrong in reopening this bug as nature of cause seems completely unrelated. The original test case causes a problem of the loaded procedure metadata to share an uninitialized state.
What you are describing now happens even if the second session do not use the procedure.
Ticket description not mentions 'procedure'.
Both the issue and the committed fix is related with rpb_runtime_flags
.
This is why I reopened this ticket.
Another difference is that original issue do not happens in classic, and as stated, it may have others consequences (not deeply investigated) non-related with SKIP LOCKED
.
The one you said also happens in classic.
This relates to comments in https://github.com/FirebirdSQL/firebird/pull/7350
Test case:
isql-1:
isql-2: