Newbie question: sqlca.sqlcode positive or negative?
scampsdJun 6 2008 — edited Sep 3 2008Good 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