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.

Macros

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

Functions

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

Variables

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

◆ ODBC_CHECK_ROWS

#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 
)
static

Definition at line 16 of file rownumber.c.

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

◆ DoTest()

static void DoTest ( )
static

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 }
static

Definition at line 13 of file rownumber.c.

◆ software_version

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

Definition at line 12 of file rownumber.c.

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