Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nesting Depth: Wrong SQL Case handling #622

Open
GKaschke opened this issue Nov 6, 2024 · 0 comments
Open

Nesting Depth: Wrong SQL Case handling #622

GKaschke opened this issue Nov 6, 2024 · 0 comments
Labels
bug Something isn't working correctly

Comments

@GKaschke
Copy link

GKaschke commented Nov 6, 2024

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.

@GKaschke GKaschke added the bug Something isn't working correctly label Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctly
Projects
None yet
Development

No branches or pull requests

1 participant