IF RECID(table) = -1 ???

mosfin

Member
in many QAD programs, there's this
strange code that comes immediately after
creating new record in a table (not temporary)
e.g:
Code:
CREATE ipd_det.
ASSIGN ...  .
IF RECID(ipd_det) = -1 THEN.
Note that it only checks if RECID is -1, but does absolutely nothing.
it looks obsolete to me (maybe remnant from old Progress revisions)
but i'm curious what was the purpose of this.
do you know ?
 

mosfin

Member
you mean that w/o this check, the Oracle dataserver will not flush/release the new data to the DB
or something like that ?
 

TomBascom

Curmudgeon
It might be something like that. It's one of those "a long time ago, in a galaxy far, far away..." sorts of things.

Basically I recall that the original reason for that code had to do with the Oracle dataserver. I have no idea if it is still necessary (I suspect not).
 
Top