PostgreSQL Source Code git master
|
#include <ecpglib.h>
#include <ecpgerrno.h>
#include <sqlca.h>
#include <locale.h>
#include <string.h>
#include <stdlib.h>
Go to the source code of this file.
Data Structures | |
struct | sqlca_t |
Macros | |
#define | ECPGdebug(X, Y) ECPGdebug((X)+100,(Y)) |
#define | POSTGRES_SQLCA_H |
#define | PGDLLIMPORT |
#define | SQLERRMC_LEN 150 |
#define | sqlca (*ECPGget_sqlca()) |
#define | ARRAY_SIZE 2 |
Functions | |
struct sqlca_t * | ECPGget_sqlca (void) |
void | execute_test (void) |
void | commitTable (void) |
void | reset (void) |
void | printResult (char *tc_name, int loop) |
int | main (void) |
Variables | |
int | f1 [ARRAY_SIZE] |
int | f2 [ARRAY_SIZE] |
char | f3 [ARRAY_SIZE][20] |
#define ARRAY_SIZE 2 |
Definition at line 100 of file sql-declare.c.
#define ECPGdebug | ( | X, | |
Y | |||
) | ECPGdebug((X)+100,(Y)) |
Definition at line 7 of file sql-declare.c.
#define PGDLLIMPORT |
Definition at line 27 of file sql-declare.c.
#define POSTGRES_SQLCA_H |
Definition at line 21 of file sql-declare.c.
#define sqlca (*ECPGget_sqlca()) |
Definition at line 78 of file sql-declare.c.
#define SQLERRMC_LEN 150 |
Definition at line 31 of file sql-declare.c.
void commitTable | ( | void | ) |
Definition at line 581 of file sql-declare.c.
References ECPGtrans(), sqlca, and sqlprint().
Referenced by main().
struct sqlca_t * ECPGget_sqlca | ( | void | ) |
Definition at line 108 of file misc.c.
void execute_test | ( | void | ) |
Definition at line 216 of file sql-declare.c.
References ARRAY_SIZE, ECPG_NOT_FOUND, ECPGallocate_desc(), ECPGd_data, ECPGd_EODT, ECPGd_length, ECPGdeallocate(), ECPGdeallocate_desc(), ECPGdescribe(), ECPGdo(), ECPGget_desc(), ECPGget_desc_header(), ECPGprepare(), ECPGprepared_statement(), ECPGst_execute, ECPGst_normal, ECPGt_char, ECPGt_char_variable, ECPGt_descriptor, ECPGt_EOIT, ECPGt_EORT, ECPGt_int, ECPGt_NO_INDICATOR, f1, f2, f3, i, printf, printResult(), reset(), sqlca, and sqlprint().
Referenced by main().
int main | ( | void | ) |
Definition at line 124 of file sql-declare.c.
References commitTable(), ECPGconnect(), ECPGdebug, ECPGdisconnect(), ECPGdo(), ECPGst_normal, ECPGt_EOIT, ECPGt_EORT, execute_test(), setlocale, sqlca, and sqlprint().
void printResult | ( | char * | tc_name, |
int | loop | ||
) |
Definition at line 607 of file sql-declare.c.
References f1, f2, f3, i, and printf.
Referenced by execute_test().
void reset | ( | void | ) |
Definition at line 600 of file sql-declare.c.
Referenced by execute_test(), injection_stats_fixed_snapshot_cb(), LocalProcessControlFile(), pgstat_archiver_snapshot_cb(), pgstat_bgwriter_snapshot_cb(), pgstat_checkpointer_snapshot_cb(), and update_checkpoint_display().
int f1[ARRAY_SIZE] |
Definition at line 113 of file sql-declare.c.
Referenced by cmpcmdflag(), compute_distinct_stats(), compute_scalar_stats(), estimate_ndistinct(), execute_test(), float8_qsort_cmp(), ndistinct_for_combination(), printResult(), and reset().
int f2[ARRAY_SIZE] |
Definition at line 116 of file sql-declare.c.
Referenced by cmpcmdflag(), execute_test(), float8_qsort_cmp(), printResult(), and reset().
char f3[ARRAY_SIZE][20] |
Definition at line 119 of file sql-declare.c.
Referenced by execute_test(), printResult(), and reset().