NCBI C++ ToolKit
|
#include <config.h>
#include <stdarg.h>
#include <stdio.h>
#include <sqlfront.h>
#include <sqldb.h>
#include <freetds/sysdep_private.h>
Go to the source code of this file.
Go to the SVN repository for this file.
Macros | |
#define | EXIT_FAILURE 1 |
#define | EXIT_SUCCESS 0 |
#define | FREETDS_SRCDIR FREETDS_TOPDIR "/src/dblib/unittests" |
#define | int2ptr(i) ((void*)(((char*)0)+(i))) |
#define | ptr2int(p) ((int)(((char*)(p))-((char*)0))) |
Functions | |
void | set_malloc_options (void) |
int | read_login_info (int argc, char **argv) |
int | syb_msg_handler (DBPROCESS *dbproc, DBINT msgno, int msgstate, int severity, char *msgtext, char *srvname, char *procname, int line) |
int | syb_err_handler (DBPROCESS *dbproc, int severity, int dberr, int oserr, char *dberrstr, char *oserrstr) |
RETCODE | sql_cmd (DBPROCESS *dbproc) |
RETCODE | sql_rewind (void) |
RETCODE | sql_reopen (const char *fn) |
Variables | |
char * | optarg |
int | optind |
int | optopt |
int | opterr |
int | optreset |
char | PASSWORD [512] |
char | USER [512] |
char | SERVER [512] |
char | DATABASE [512] |
#define FREETDS_SRCDIR FREETDS_TOPDIR "/src/dblib/unittests" |
Definition at line 107 of file common.c.
References ARGV0, ARGV0B, assert, basename, BASENAME, database, DATABASE, dbrecftos(), DIRNAME, exit(), free(), free_file(), free_file_registered, FREETDS_SRCDIR, getopt, in(), input_file, len, NULL, optarg, PASSWORD, PATH_MAX, PWD, SERVER, sql_file, util::strcmp(), strdup, and USER.
void set_malloc_options | ( | void | ) |
Definition at line 280 of file common.c.
References BASENAME, dbcmd(), dbproc, exit(), i, input_file, NULL, sql_file, strcasecmp, and SUCCEED.
Referenced by create_tables(), do_test(), drop_table(), init(), init_proc(), insert_row(), main(), query(), select_rows(), start_query(), test(), and test_file().
RETCODE sql_rewind | ( | void | ) |
int syb_err_handler | ( | DBPROCESS * | dbproc, |
int | severity, | ||
int | dberr, | ||
int | oserr, | ||
char * | dberrstr, | ||
char * | oserrstr | ||
) |
Definition at line 404 of file common.c.
References DBDEAD, dbgetuserdata(), dbproc, exit(), EXIT_FAILURE, INT_CANCEL, NULL, SYBECOFL, and SYBESMSG.
Referenced by err_handler(), ignore_err_handler(), main(), test(), and test_file().
int syb_msg_handler | ( | DBPROCESS * | dbproc, |
DBINT | msgno, | ||
int | msgstate, | ||
int | severity, | ||
char * | msgtext, | ||
char * | srvname, | ||
char * | procname, | ||
int | line | ||
) |
Definition at line 334 of file common.c.
References dbgetuserdata(), dbproc, exit(), EXIT_FAILURE, and NULL.
Referenced by ignore_msg_handler(), main(), test(), and test_file().
|
extern |
Definition at line 65 of file getopt.c.
Referenced by tds_getopt().
|
extern |
Definition at line 160 of file replacements.h.
Referenced by tds_getopt().
|
extern |
Definition at line 62 of file getopt.c.
Referenced by tds_getopt().
|
extern |
Definition at line 63 of file getopt.c.
Referenced by tds_getopt().
|
extern |
Definition at line 160 of file replacements.h.
Referenced by tds_getopt().