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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Newbie question: sqlca.sqlcode positive or negative?

scampsdJun 6 2008 — edited Sep 3 2008
Good afternoon,
we have a database based application, launching SQL queries on an Oracle 8.1.7 database.
These queries return sqlca.sqlcode values, like 0 in case of succesful and 1403/-1403 in case of unsuccesful.

Exactly the latter is a problem: the whole application is based on the following condition:
sqlca.sqlcode = 0 => OK
sqlca.sqlcode < 0 => NOK

This works fine on our test lab, where the return values are always negative (-1403) in case of a "not found", but it seems that at client's side, sometimes a positive value (1403) pops up, resulting in a bad behaviour.

My question: is it possible to configure Oracle in such a way that the return codes are always negative (in order for us not to change the whole application)?

Thanks
Dominique
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 1 2008
Added on Jun 6 2008
8 comments
3,073 views