NCBI C++ ToolKit
Macros | Functions | Variables
rownumber.c File Reference
#include "common.h"
#include <common/test_assert.h>
+ Include dependency graph for rownumber.c:

Go to the source code of this file.

Go to the SVN repository for this file.


#define ODBC_CHECK_ROWS(n)   CheckRowNum(n,__LINE__)


static void CheckRowNum (int n, int line)
static void DoTest ()
int main (int argc, char *argv[])


static char software_version [] = "$Id: rownumber.c 80645 2017-12-28 17:20:38Z ucko $"
static void * no_unused_var_warn [] = { software_version, no_unused_var_warn }

Macro Definition Documentation


#define ODBC_CHECK_ROWS (   n)    CheckRowNum(n,__LINE__)

Definition at line 33 of file rownumber.c.

Function Documentation

◆ CheckRowNum()

static void CheckRowNum ( int  n,
int  line 

Definition at line 16 of file rownumber.c.

References CHKGetStmtAttr, exit(), n, NULL, SQL_ATTR_ROW_NUMBER, and value.

◆ DoTest()

static void DoTest ( )

Definition at line 36 of file rownumber.c.

References CHKExecDirect, CHKFetch, CHKMoreResults, n, ODBC_CHECK_ROWS, query, and SQL_NTS.

Referenced by main().

◆ main()

int main ( int  argc,
char *  argv[] 

Definition at line 69 of file rownumber.c.

References DoTest(), odbc_command, odbc_connect(), odbc_disconnect(), and odbc_use_version3.

Variable Documentation

◆ no_unused_var_warn

void* no_unused_var_warn[] = { software_version, no_unused_var_warn }

Definition at line 13 of file rownumber.c.

◆ software_version

char software_version[] = "$Id: rownumber.c 80645 2017-12-28 17:20:38Z ucko $"

Definition at line 12 of file rownumber.c.

Modified on Sun Mar 03 03:14:25 2024 by rev. 669887