Hi,
I noticed some strange (wrong?) behaviour when I try to Fold All code (collapse). But this happen only when is in code found specific code.
For example I have file with multiple cursors, like Cursor 1, Cursor 2, which are actually only different versions of same cursor I have in this file. When is in code found Case statement Fold All work wrong and collapse all cursors into 1, even are in file 2 or more. I attach also code below for easier test and how it should look like. This happen in 2025 R3. Is this a bug?
Regards,
Blacksmith
-- Cursor 1 ...
Select
'File01',
Cursor(
Select
Cursor( -- Cur1
Select
TBL.Attr1 Field1 -- << Using this fold Ok
-- RTrim(
-- Nvl(TBL.Attr1, '') ||
-- Case
-- When TBL.Attr1 Is Not Null And TBL.Attr2 Is Not Null Then '; '
-- End ||
-- Nvl(TBL.Attr2, '')
-- ) Field1 -- << Using that line Fold All collapse all
From
Dual
) "rec_cur1",
Cursor( -- Cur2
Select
2 Field2
From
Dual
) "rec_cur2"
From
Dual
) "data"
From
Dual
;
-- Cursor 2 ...
Select
'File01',
Cursor(
Select
Cursor( -- Cur1
Select
1 Field1
From
Dual
) "rec_cur1",
Cursor( -- Cur2
Select
2 Field2
From
Dual
) "rec_cur2"
From
Dual
) "data"
From
Dual
;
