Print Thread
Incomplete support of plsql in with clause
#64524 03/23/23 04:12 PM
Joined: Nov 2011
Posts: 28
Netherlands
E
EvROCS Offline OP
Member
OP Offline
Member
E
Joined: Nov 2011
Posts: 28
Netherlands
I just noticed that the "Details" in the Sessions Tool does not support plsql in the with clause.
The "Filters" does support it.

This cost me quite a bit of time trying to figure out what was wrong with my query, and it turned out: nothing.
Because I already used the feature in the Filters without problem, I did not suspect that the Details does not support it.

Version: 15.0.3.2059

Test case:
1 - Create filter "Test Filter" with query:
SQL Query
with
  function try
  return varchar2
  is
  begin
    return 'SUCCESS !!';
  end;
  --
select try
from   dual

2 - Create detail "Test Details" with the exact same query

3 - Open Session Tool

You'll see "SUCCESS !!" selected in the filter part and "ORA-00905: missing keyword" in de Detail part. (See attached screenshot)

Attached Files
plsqldev_sessions_tool.png (23.21 KB, 38 downloads)

Erik van Roon
EvROCS

Re: Incomplete support of plsql in with clause
EvROCS #64526 03/24/23 10:25 AM
Joined: Aug 1999
Posts: 22,206
Member
Offline
Member
Joined: Aug 1999
Posts: 22,206
I tested this, and it seems that the statement is incorrectly truncated at the first semi-colon (after 'SUCCESS !!'). We'll fix it.


Marco Kalter
Allround Automations
Re: Incomplete support of plsql in with clause
EvROCS #64527 03/24/23 11:23 AM
Joined: Nov 2011
Posts: 28
Netherlands
E
EvROCS Offline OP
Member
OP Offline
Member
E
Joined: Nov 2011
Posts: 28
Netherlands
Fantastic. Thanks Marco!


Erik van Roon
EvROCS


Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.066s Queries: 16 (0.019s) Memory: 2.5026 MB (Peak: 3.0378 MB) Data Comp: Off Server Time: 2024-04-30 18:32:38 UTC
Valid HTML 5 and Valid CSS