NCBI C++ ToolKit
token2.c
Go to the documentation of this file.

Go to the SVN repository for this file.

1 if ((ret = tds_process_row_tokens(dbproc->tds_socket, &rowtype))
2  == TDS_SUCCESS) {
3  if (rowtype == TDS_REG_ROW) {
4  /* Add the row to the row buffer */
5  resinfo = tds->current_results;
6  buffer_add_row(&(dbproc->row_buf), resinfo->current_row,
7  resinfo->row_size);
8  result = REG_ROW;
9  } else if (rowtype == TDS_COMP_ROW) {
10  /* Add the row to the row buffer */
11  resinfo = tds->current_results;
12  buffer_add_row(&(dbproc->row_buf), resinfo->current_row,
13  resinfo->row_size);
15  } else
16  result = FAIL;
17 } else if (ret == TDS_NO_MORE_ROWS) {
19 } else
static int buffer_add_row(DBPROCESS *dbproc, TDSRESULTINFO *resinfo)
Called by dbnextrow Returns a row buffer index, or -1 to indicate the buffer is full.
Definition: buffering.h:483
static TDSSOCKET * tds
Definition: collations.c:37
TDSSOCKET * tds_socket
Definition: dblib.h:122
DBPROC_ROWBUF row_buf
Definition: dblib.h:125
TDS_USMALLINT computeid
Definition: tds.h:846
TDSRESULTINFO * current_results
Current query information.
Definition: tds.h:1263
#define REG_ROW
Definition: sybdb.h:580
#define NO_MORE_ROWS
Definition: sybdb.h:582
#define FAIL
Definition: sybdb.h:586
DBPROCESS * dbproc
Definition: t0013.c:18
#define TDS_SUCCESS
Definition: tds.h:203
else result
Definition: token2.c:20
Modified on Mon Sep 25 00:48:41 2023 by modify_doxy.py rev. 669887