|
PostgreSQL Source Code git master
|
#include <ecpglib.h>#include <ecpgerrno.h>#include <sqlca.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <limits.h>#include <pgtypes.h>
Go to the source code of this file.
Data Structures | |
| struct | numeric |
| struct | decimal |
| struct | mytype |
| struct | mynulltype |
Macros | |
| #define | ECPGdebug(X, Y) ECPGdebug((X)+100,(Y)) |
| #define | PGTYPES_NUMERIC |
| #define | NUMERIC_POS 0x0000 |
| #define | NUMERIC_NEG 0x4000 |
| #define | NUMERIC_NAN 0xC000 |
| #define | NUMERIC_NULL 0xF000 |
| #define | NUMERIC_MAX_PRECISION 1000 |
| #define | NUMERIC_MAX_DISPLAY_SCALE NUMERIC_MAX_PRECISION |
| #define | NUMERIC_MIN_DISPLAY_SCALE 0 |
| #define | NUMERIC_MIN_SIG_DIGITS 16 |
| #define | DECSIZE 30 |
Typedefs | |
| typedef unsigned char | NumericDigit |
| typedef struct mytype | MYTYPE |
| typedef struct mynulltype | MYNULLTYPE |
| #define DECSIZE 30 |
Definition at line 42 of file preproc-outofscope.c.
| #define ECPGdebug | ( | X, | |
| Y | |||
| ) | ECPGdebug((X)+100,(Y)) |
Definition at line 7 of file preproc-outofscope.c.
| #define NUMERIC_MAX_DISPLAY_SCALE NUMERIC_MAX_PRECISION |
Definition at line 38 of file preproc-outofscope.c.
| #define NUMERIC_MAX_PRECISION 1000 |
Definition at line 37 of file preproc-outofscope.c.
| #define NUMERIC_MIN_DISPLAY_SCALE 0 |
Definition at line 39 of file preproc-outofscope.c.
| #define NUMERIC_MIN_SIG_DIGITS 16 |
Definition at line 40 of file preproc-outofscope.c.
| #define NUMERIC_NAN 0xC000 |
Definition at line 35 of file preproc-outofscope.c.
| #define NUMERIC_NEG 0x4000 |
Definition at line 34 of file preproc-outofscope.c.
| #define NUMERIC_NULL 0xF000 |
Definition at line 36 of file preproc-outofscope.c.
| #define NUMERIC_POS 0x0000 |
Definition at line 33 of file preproc-outofscope.c.
| #define PGTYPES_NUMERIC |
Definition at line 29 of file preproc-outofscope.c.
| typedef struct mynulltype MYNULLTYPE |
Definition at line 125 of file preproc-outofscope.c.
Definition at line 112 of file preproc-outofscope.c.
| typedef unsigned char NumericDigit |
Definition at line 44 of file preproc-outofscope.c.
|
static |
Definition at line 251 of file preproc-outofscope.c.
References ECPGdo(), ECPGst_normal, ECPGt_EOIT, ECPGt_EORT, and sqlca.
Referenced by main().
|
static |
Definition at line 230 of file preproc-outofscope.c.
References ECPGdo(), ECPGget_var(), ECPGst_normal, ECPGt_char, ECPGt_double, ECPGt_EOIT, ECPGt_EORT, ECPGt_int, and sqlca.
Referenced by main().
|
static |
Definition at line 173 of file preproc-outofscope.c.
References ECPGset_var(), malloc, and sqlca.
Referenced by main().
| int main | ( | void | ) |
Definition at line 262 of file preproc-outofscope.c.
References mytype::c, mynulltype::c, close_cur1(), mytype::d1, mynulltype::d1, mytype::d2, mynulltype::d2, ECPG_NOT_FOUND, ECPGconnect(), ECPGdebug, ECPGdisconnect(), ECPGdo(), ECPGst_normal, ECPGt_EOIT, ECPGt_EORT, ECPGtrans(), free, get_record1(), get_var1(), mytype::id, mynulltype::id, open_cur1(), printf, sqlca, mytype::t, and mynulltype::t.
|
static |
Definition at line 209 of file preproc-outofscope.c.
References ECPGdo(), ECPGget_var(), ECPGst_normal, ECPGt_char, ECPGt_double, ECPGt_EOIT, ECPGt_EORT, ECPGt_int, and sqlca.
Referenced by main().
| void PGTYPESdecimal_free | ( | decimal * | var | ) |
| decimal * PGTYPESdecimal_new | ( | void | ) |
Definition at line 637 of file numeric.c.
Definition at line 1281 of file numeric.c.
Definition at line 1053 of file numeric.c.
| void PGTYPESnumeric_free | ( | numeric * | var | ) |
| numeric * PGTYPESnumeric_from_asc | ( | char * | str, |
| char ** | endptr | ||
| ) |
Definition at line 321 of file numeric.c.
| int PGTYPESnumeric_from_double | ( | double | d, |
| numeric * | dst | ||
| ) |
Definition at line 1411 of file numeric.c.
| int PGTYPESnumeric_from_int | ( | signed int | int_val, |
| numeric * | var | ||
| ) |
Definition at line 1309 of file numeric.c.
| int PGTYPESnumeric_from_long | ( | signed long int | long_val, |
| numeric * | var | ||
| ) |
Definition at line 1318 of file numeric.c.
Definition at line 896 of file numeric.c.
| numeric * PGTYPESnumeric_new | ( | void | ) |
Definition at line 765 of file numeric.c.
| char * PGTYPESnumeric_to_asc | ( | numeric * | num, |
| int | dscale | ||
| ) |
Definition at line 343 of file numeric.c.
Definition at line 1547 of file numeric.c.
| int PGTYPESnumeric_to_double | ( | numeric * | nv, |
| double * | dp | ||
| ) |
Definition at line 1483 of file numeric.c.
| int PGTYPESnumeric_to_int | ( | numeric * | nv, |
| int * | ip | ||
| ) |
Definition at line 1494 of file numeric.c.
| int PGTYPESnumeric_to_long | ( | numeric * | nv, |
| long * | lp | ||
| ) |
Definition at line 1518 of file numeric.c.