-
Notifications
You must be signed in to change notification settings - Fork 73
Open
Labels
bugSomething isn't working correctlySomething isn't working correctly
Description
Hello,
In y_check_max_nesting_depth CASEs in SQL statements are not counted correctly. In the example, the method is shown with depth 7. As far as I understand the check logic, the "END" after the "SQL-CASE" is not respected.
Regards, Günter
method test_depth_7.
select from mara
fields matnr,
case mtart when 'QBMI' then 'X' end as f1,
case mtart when 'QBMU' then 'X' end as f2,
case mtart when 'QFHM' then 'X' end as f3,
case mtart when 'QPRO' then 'X' end as f4,
case mtart when 'QBMU' then 'X' end as f5,
case mtart when 'QBMV' then 'X' end as f6
where matnr = '4711'
into table @DaTa(tmara).
if sy-subrc is initial.
sy-tvar0 = lines( tmara ).
endif.
endmethod.
Metadata
Metadata
Assignees
Labels
bugSomething isn't working correctlySomething isn't working correctly