Skip to content

Commit e7965e1

Browse files
authored
Merge branch 'master' into 1.14.0
2 parents 045d311 + 9dc32b8 commit e7965e1

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

changelog.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ Whenever you upgrade code pal for ABAP, it is highly recommended to execute the
1919
* Standard functions in Prefer IS NOT to NOT IS (#338)
2020
* In the profile feature, you can add all the missing checks (#346)
2121

22+
2021-04-08 v.1.13.2
23+
------------------
24+
* Dump in Y_CHECK_DB_ACCESS_IN_UT (#363)
25+
2226
2021-04-05 v.1.13.1
2327
------------------
2428
* Y_CHECK_DB_ACCESS_IN_UT on INSERT INTO internal table (#348)

src/checks/y_check_db_access_in_ut.clas.abap

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ CLASS y_check_db_access_in_ut DEFINITION PUBLIC INHERITING FROM y_check_base CRE
6161
METHODS is_part_of_framework IMPORTING structure TYPE sstruc
6262
RETURNING VALUE(result) TYPE abap_bool.
6363

64-
METHODS is_persistent_object IMPORTING obj_name TYPE string
64+
METHODS is_persistent_object IMPORTING obj_name TYPE tadir-obj_name
6565
RETURNING VALUE(result) TYPE abap_bool.
6666

6767
METHODS is_internal_table IMPORTING statement TYPE sstmnt
@@ -140,7 +140,11 @@ CLASS Y_CHECK_DB_ACCESS_IN_UT IMPLEMENTATION.
140140
WHEN third_token = keys-into THEN fourth_token
141141
ELSE second_token ).
142142

143-
result = xsdbool( is_persistent_object( table_name ) = abap_false ).
143+
IF strlen( table_name ) > 40.
144+
RETURN.
145+
ENDIF.
146+
147+
result = xsdbool( is_persistent_object( CONV #( table_name ) ) = abap_false ).
144148
ENDMETHOD.
145149

146150

0 commit comments

Comments
 (0)