[CBRD-25694] regression: SP에서 OID 인수에 대해 heap_next()에서 eval_data_filter()에 NULL OID가 전달되는 현상 #5683
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
http://jira.cubrid.org/browse/CBRD-25694
Background
target query: https://github.com/CUBRID/cubrid-testcases/blob/develop/sql/_08_javasp/cases/418-4.sql
test_oid1은 xoo의 OID를 그대로 반환합니다. xoo = testoid1(xoo) 가 조건이 true로 반환되어야 하지만 testoid1의 인수가 NULL OID가 전달되고 있습니다.
scan_next_heap_scan () 의 최상단에서 p_current_oid를 초기화 하지만, 이때에는 hsidp->curr_oid가 NULL OID로 초기화 되어 있으며, 이후 스캔을 진행한 후 hsidp->curr_oid의 값이 올바르게 설정되므로, p_current_oid의 NULL OID 여부를 확인한 후 hsidp->curr_oid의 OID를 전달할 수 있도록 수정했습니다.