I am using PL/SQL Developer 9.0.6, working on an Oracle 11g database.
I have a procedure in a package that creates some dynamic SQL to be run with execute immediate
. The variable vSQL
is declared as varchar2(4000)
. My procedure builds and runs vSQL
correctly, and returns a ref cursor
through an out
paramter.
However, while debugging my procedure, something unexpected happened: I set a watch on vSQL
, and when the length vSQL
gets to 1000 or greater, the value in the Watch window changes from the contents of vSQL
to the literal '(Long Value)' and I can no longer view the contents of vSQL
.
Why does this happen? Is there any way that I can cast vSQL
so that I can still view it while debugging my procedure?