PostgreSQL Source Code
git master
|
#include <ecpglib.h>
#include <ecpgerrno.h>
#include <sqlca.h>
#include <ecpg_informix.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include "sqlda-native.h"
Go to the source code of this file.
Typedefs | |
typedef struct sqlvar_struct | sqlvar_t |
typedef struct sqlda_struct | sqlda_t |
Functions | |
static void | dump_sqlda (sqlda_t *sqlda) |
int | main (void) |
Variables | |
sqlda_t * | inp_sqlda |
sqlda_t * | outp_sqlda |
#define CBOOLTYPE ECPGt_bool |
Definition at line 78 of file compat_informix-sqlda.c.
#define CCHARTYPE ECPGt_char |
Definition at line 57 of file compat_informix-sqlda.c.
#define CCOLLTYPE 118 |
Definition at line 74 of file compat_informix-sqlda.c.
#define CDATETYPE ECPGt_date |
Definition at line 66 of file compat_informix-sqlda.c.
#define CDECIMALTYPE ECPGt_decimal |
Definition at line 63 of file compat_informix-sqlda.c.
#define CDOUBLETYPE ECPGt_double |
Definition at line 62 of file compat_informix-sqlda.c.
#define CDTIMETYPE ECPGt_timestamp |
Definition at line 68 of file compat_informix-sqlda.c.
#define CFILETYPE 116 |
Definition at line 72 of file compat_informix-sqlda.c.
#define CFIXBINTYPE 120 |
Definition at line 76 of file compat_informix-sqlda.c.
#define CFIXCHARTYPE 108 |
Definition at line 64 of file compat_informix-sqlda.c.
#define CFLOATTYPE ECPGt_float |
Definition at line 61 of file compat_informix-sqlda.c.
#define CINT8TYPE ECPGt_long_long |
Definition at line 73 of file compat_informix-sqlda.c.
#define CINTTYPE ECPGt_int |
Definition at line 59 of file compat_informix-sqlda.c.
#define CINVTYPE 115 |
Definition at line 71 of file compat_informix-sqlda.c.
#define CLOCATORTYPE 113 |
Definition at line 69 of file compat_informix-sqlda.c.
#define CLONGTYPE ECPGt_long |
Definition at line 60 of file compat_informix-sqlda.c.
#define CLVCHARPTRTYPE 124 |
Definition at line 80 of file compat_informix-sqlda.c.
#define CLVCHARTYPE 119 |
Definition at line 75 of file compat_informix-sqlda.c.
#define CMONEYTYPE 111 |
Definition at line 67 of file compat_informix-sqlda.c.
#define CROWTYPE 123 |
Definition at line 79 of file compat_informix-sqlda.c.
#define CSHORTTYPE ECPGt_short |
Definition at line 58 of file compat_informix-sqlda.c.
#define CSTRINGTYPE ECPGt_char |
Definition at line 65 of file compat_informix-sqlda.c.
#define CTYPEMAX 25 |
Definition at line 81 of file compat_informix-sqlda.c.
#define CVARBINTYPE 121 |
Definition at line 77 of file compat_informix-sqlda.c.
#define CVCHARTYPE ECPGt_varchar |
Definition at line 70 of file compat_informix-sqlda.c.
#define ECPG_SQLDA_H |
Definition at line 30 of file compat_informix-sqlda.c.
#define ECPG_SQLTYPES_H |
Definition at line 53 of file compat_informix-sqlda.c.
#define ECPGdebug | ( | X, | |
Y | |||
) | ECPGdebug((X)+100,(Y)) |
Definition at line 9 of file compat_informix-sqlda.c.
#define SQLCHAR ECPGt_char |
Definition at line 86 of file compat_informix-sqlda.c.
#define SQLDATE ECPGt_date |
Definition at line 93 of file compat_informix-sqlda.c.
#define SQLDECIMAL ECPGt_decimal |
Definition at line 91 of file compat_informix-sqlda.c.
#define SQLDTIME ECPGt_timestamp |
Definition at line 94 of file compat_informix-sqlda.c.
#define SQLFLOAT ECPGt_double |
Definition at line 89 of file compat_informix-sqlda.c.
#define SQLINT ECPGt_int |
Definition at line 88 of file compat_informix-sqlda.c.
#define SQLINT8 ECPGt_long |
Definition at line 104 of file compat_informix-sqlda.c.
#define SQLINTERVAL ECPGt_interval |
Definition at line 97 of file compat_informix-sqlda.c.
#define SQLNCHAR ECPGt_char |
Definition at line 98 of file compat_informix-sqlda.c.
#define SQLNVCHAR ECPGt_char |
Definition at line 99 of file compat_informix-sqlda.c.
#define SQLSERIAL ECPGt_int |
Definition at line 92 of file compat_informix-sqlda.c.
#define SQLSERIAL8 ECPGt_long |
Definition at line 105 of file compat_informix-sqlda.c.
#define SQLSMFLOAT ECPGt_float |
Definition at line 90 of file compat_informix-sqlda.c.
#define SQLSMINT ECPGt_short |
Definition at line 87 of file compat_informix-sqlda.c.
#define SQLTEXT ECPGt_char |
Definition at line 95 of file compat_informix-sqlda.c.
#define SQLVCHAR ECPGt_char |
Definition at line 96 of file compat_informix-sqlda.c.
typedef struct sqlda_struct sqlda_t |
Definition at line 1 of file compat_informix-sqlda.c.
typedef struct sqlvar_struct sqlvar_t |
Definition at line 1 of file compat_informix-sqlda.c.
|
static |
Definition at line 121 of file compat_informix-sqlda.c.
References dectoasc(), i, printf, SQLCHAR, sqlda_struct::sqld, sqlvar_struct::sqldata, SQLDECIMAL, SQLFLOAT, sqlvar_struct::sqlind, SQLINT, sqlvar_struct::sqlname, sqlvar_struct::sqltype, sqlda_struct::sqlvar, and val.
Referenced by main().
int main | ( | void | ) |
Definition at line 159 of file compat_informix-sqlda.c.
References dump_sqlda(), ECPG_NOT_FOUND, ECPGconnect(), ECPGdeallocate(), ECPGdebug, ECPGdisconnect(), ECPGdo(), ECPGprepare(), ECPGprepared_statement(), ECPGst_execute, ECPGst_normal, ECPGt_char_variable, ECPGt_EOIT, ECPGt_EORT, ECPGt_NO_INDICATOR, ECPGt_sqlda, ECPGtrans(), exit(), free, inp_sqlda, malloc, outp_sqlda, printf, sqlca, sqlda_struct::sqld, sqlvar_struct::sqldata, SQLINT, sqlvar_struct::sqltype, and sqlda_struct::sqlvar.
sqlda_t* inp_sqlda |
Definition at line 118 of file compat_informix-sqlda.c.
Referenced by main().
sqlda_t * outp_sqlda |
Definition at line 118 of file compat_informix-sqlda.c.
Referenced by main().