Values for curstatus

The curstatus field of the SRV_CURDESC structure is a bitmask that can take any combination of these values:

Table 2-13: Values for curstatus (SRV_CURDESC)

Value

Meaning

CS_CURSTAT_DECLARED

The cursor has been declared. This status is reset after the next cursor command has been processed.

CS_CURSTAT_OPEN

The cursor has been opened.

CS_CURSTAT_ROWCNT

The cursor has specified the number of rows that should be returned for the CS_CURSOR_FETCH command.

CS_CURSTAT_RDONLY

The cursor is read-only; it cannot be updated. The Open Server application should return an error to the client if a CS_CURSOR_UPDATE or CS_CURSOR_DELETE is received for this cursor.

CS_CURSTAT_UPDATABLE

The cursor can be updated.

CS_CURSTAT_CLOSED

The cursor was closed but not deallocated. It can be opened again later. This status is also set upon declaration of a cursor. Open Server clears it when a CS_CURSOR_OPEN is received and resets it when a CS_CURSOR_CLOSE is received.

CS_CURSTAT_DEALLOC

The cursor was closed and deallocated. No other status flags should be set at this time.