Ns_PdDbResultRows

Name

Ns_PdDbResultRows -- Send to the client the number of rows last affected by a exec.

Syntax

void Ns_PdDbResultRows (void *handle);

Description

This function sends to the client with Ns_PdSendString the number of rows affected by last exec command.

Pseudo-code Example

void
Ns_PdDbResultRows(void *handle) {
  DBMSState *state = (DBMSState *)handle;
  char rowcntbuf[128];
  Ns_PdLog(Trace, "resultrows:");
  sprintf(rowcntbuf, "%d", state->lastRowCnt);
  Ns_PdSendString(rowcntbuf);
}