You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Randomly occuring error during comparing two cursors #827
When running a test with comparing two cursors from time to time error occurs.
ORA-06553: PLS-306: wrong numberor types of arguments in call to 'COMPARE'
ORA-06512: at "UT3.UT_COMPOUND_DATA_VALUE", line172
ORA-06512: at "UT3.UT_DATA_VALUE_REFCURSOR", line253
ORA-06512: at "UT3.UT_EQUAL", line236
ORA-06512: at "UT3.UT_EXPECTATION", line24
ORA-06512: at "UT3.UT_EXPECTATION", line136
ORA-06512: at "SPD.UT_SPI_ENGINE_TRA", line239
ORA-06512: at line6
Its still showing randomly which is annoying. I think worth to put some braces around these lines to make sure that there is no empty nulls passing so we can handle this gracefully.
Interesting why we would get nulls passed to COMPARE. As you say. This should never happer.
We will need better trapping and logging to be able to investigate it.
We can add some safety checks to prevent this error but this will not fix the problem I guess.
I think where possible we should not let to the situation where the system error occurs by invoking a sys code with invalid argument. I know it might be impossible task but if we limit at least these scenarios where we know about will be easier for user to understand error. This one above for example is very cryptic and doesn't tell you what happened there.
This is new code version can occurs only in SQL when comparing two columns extract from XML.
We could try run nvl on that nvl(s.column_value.getclobval(),empty_clob()) to make sure is always initialised.
Activity
lwasylow commentedon Feb 26, 2019
Its still showing randomly which is annoying. I think worth to put some braces around these lines to make sure that there is no empty nulls passing so we can handle this gracefully.
jgebal commentedon Feb 26, 2019
Interesting why we would get nulls passed to COMPARE. As you say. This should never happer.
We will need better trapping and logging to be able to investigate it.
We can add some safety checks to prevent this error but this will not fix the problem I guess.
lwasylow commentedon Feb 26, 2019
I think where possible we should not let to the situation where the system error occurs by invoking a sys code with invalid argument. I know it might be impossible task but if we limit at least these scenarios where we know about will be easier for user to understand error. This one above for example is very cryptic and doesn't tell you what happened there.
lwasylow commentedon Mar 8, 2019
This is new code version can occurs only in SQL when comparing two columns extract from XML.
We could try run nvl on that
nvl(s.column_value.getclobval(),empty_clob())to make sure is always initialised.