mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-01 04:08:27 +08:00
Fix "DB delete failed" (#5534)
This commit is contained in:
parent
1b4582bc03
commit
73c9763a15
|
@ -115,18 +115,10 @@ CLASS zcl_abapgit_persistence_db IMPLEMENTATION.
|
|||
lock( iv_type = iv_type
|
||||
iv_value = iv_value ).
|
||||
|
||||
" Ignore errors since record might not exist
|
||||
DELETE FROM (c_tabname)
|
||||
WHERE type = iv_type
|
||||
AND value = iv_value.
|
||||
IF sy-subrc <> 0.
|
||||
" If entry is still there? That's an error, otherwise ignore
|
||||
SELECT SINGLE data_str FROM (c_tabname) INTO lv_data
|
||||
WHERE type = iv_type
|
||||
AND value = iv_value.
|
||||
IF sy-subrc = 0.
|
||||
zcx_abapgit_exception=>raise( 'DB Delete failed' ).
|
||||
ENDIF.
|
||||
ENDIF.
|
||||
|
||||
ENDMETHOD.
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user