In Pro*C, can UPDATE return sqlca.sqlcode=1403 ? [message #678941] |
Thu, 23 January 2020 03:49 |
|
NevemTeve
Messages: 25 Registered: November 2017
|
Junior Member |
|
|
Hi, this is a bad question; I know it can, as I just got sqlca.sqlcode=1403 when zero line matched the WHERE condition of an UPDATE.
With Sql*Plus I get the expected result: "0 rows updated"
So my only question: is this behavior of Pro*C documented?
|
|
|
|
|
|
|
Re: In Pro*C, can UPDATE return sqlca.sqlcode=1403 ? [message #678950 is a reply to message #678948] |
Thu, 23 January 2020 11:27 |
|
NevemTeve
Messages: 25 Registered: November 2017
|
Junior Member |
|
|
Hi guys, thank you for you help,
I sort of know what 'not found' means when I execute a `SELECT INTO` or `FETCH INTO`; but it did surprise me that a successful update (that happened to affect zero lines) why should return 'not found' instead of 'ok'.
Anyways, it just does that, so I think I'll deal with it.
Again: thank you guys.
|
|
|