From 9dc32b8a172b5327be565bfb6d3d384a735aca40 Mon Sep 17 00:00:00 2001 From: Lucas Borin <5233413+lucasborin@users.noreply.github.com> Date: Thu, 8 Apr 2021 10:37:49 -0300 Subject: [PATCH] 1.13.2 (#364) * 1.13.2 * fixes #363 (#365) * Update changelog.txt * Update changelog.txt Co-authored-by: Lucas Borin --- changelog.txt | 4 ++++ src/checks/y_check_db_access_in_ut.clas.abap | 8 ++++++-- src/y_code_pal_version.intf.abap | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/changelog.txt b/changelog.txt index 63bb34f5..fd9a533c 100644 --- a/changelog.txt +++ b/changelog.txt @@ -12,6 +12,10 @@ Upgrade Note ------------------ Whenever you upgrade code pal for ABAP, it is highly recommended to execute the Y_CI_CHECK_REGISTRATION report to activate/reactivate the Checks (SE38 transaction) and regenerate the respective code inspector variant (SCI transaction) +2021-04-08 v.1.13.2 +------------------ +* Dump in Y_CHECK_DB_ACCESS_IN_UT (#363) + 2021-04-05 v.1.13.1 ------------------ * Y_CHECK_DB_ACCESS_IN_UT on INSERT INTO internal table (#348) diff --git a/src/checks/y_check_db_access_in_ut.clas.abap b/src/checks/y_check_db_access_in_ut.clas.abap index 5287d77b..63b498f3 100644 --- a/src/checks/y_check_db_access_in_ut.clas.abap +++ b/src/checks/y_check_db_access_in_ut.clas.abap @@ -61,7 +61,7 @@ CLASS y_check_db_access_in_ut DEFINITION PUBLIC INHERITING FROM y_check_base CRE METHODS is_part_of_framework IMPORTING structure TYPE sstruc RETURNING VALUE(result) TYPE abap_bool. - METHODS is_persistent_object IMPORTING obj_name TYPE string + METHODS is_persistent_object IMPORTING obj_name TYPE tadir-obj_name RETURNING VALUE(result) TYPE abap_bool. METHODS is_internal_table IMPORTING statement TYPE sstmnt @@ -140,7 +140,11 @@ CLASS Y_CHECK_DB_ACCESS_IN_UT IMPLEMENTATION. WHEN third_token = keys-into THEN fourth_token ELSE second_token ). - result = xsdbool( is_persistent_object( table_name ) = abap_false ). + IF strlen( table_name ) > 40. + RETURN. + ENDIF. + + result = xsdbool( is_persistent_object( CONV #( table_name ) ) = abap_false ). ENDMETHOD. diff --git a/src/y_code_pal_version.intf.abap b/src/y_code_pal_version.intf.abap index c5ff8387..2cf7fc48 100644 --- a/src/y_code_pal_version.intf.abap +++ b/src/y_code_pal_version.intf.abap @@ -1,3 +1,3 @@ INTERFACE y_code_pal_version PUBLIC. - CONSTANTS abap TYPE string VALUE '1.13.1' ##NO_TEXT. + CONSTANTS abap TYPE string VALUE '1.13.2' ##NO_TEXT. ENDINTERFACE.