Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Cursor fetch null but its query works on SQL Worksheet

Alejandro Tovar LanzOct 12 2012 — edited Oct 12 2012
Hi all,

I am tracing my application using PYUPIP tool. I have a cursor which receives two (2) parameters and its body uses also one (1) global variable.

I am printing the parameters just before the cursor is opened so I certify that I am passing not null values etc.

I print the result of fetching the cursor into two local variables. This is because my cursor returns to values. After printing them, the result is NULL for both of them.

If execute the body of my cursor in SQL Worksheet, and I pass to it the SAME parameters that I printed before, I get the results as I expected.

Is this a normal behaviour or am I doing something wrong??

Regards
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 9 2012
Added on Oct 12 2012
9 comments
1,506 views