PostgreSQL Source Code  git master
ecpgtype.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define IS_SIMPLE_TYPE(type)   (((type) >= ECPGt_char && (type) <= ECPGt_interval) || ((type) == ECPGt_string) || ((type) == ECPGt_bytea))
 

Enumerations

enum  ECPGttype {
  ECPGt_char = 1 , ECPGt_unsigned_char , ECPGt_short , ECPGt_unsigned_short ,
  ECPGt_int , ECPGt_unsigned_int , ECPGt_long , ECPGt_unsigned_long ,
  ECPGt_long_long , ECPGt_unsigned_long_long , ECPGt_bool , ECPGt_float ,
  ECPGt_double , ECPGt_varchar , ECPGt_varchar2 , ECPGt_numeric ,
  ECPGt_decimal , ECPGt_date , ECPGt_timestamp , ECPGt_interval ,
  ECPGt_array , ECPGt_struct , ECPGt_union , ECPGt_descriptor ,
  ECPGt_char_variable , ECPGt_const , ECPGt_EOIT , ECPGt_EORT ,
  ECPGt_NO_INDICATOR , ECPGt_string , ECPGt_sqlda , ECPGt_bytea
}
 
enum  ECPGdtype {
  ECPGd_count = 1 , ECPGd_data , ECPGd_di_code , ECPGd_di_precision ,
  ECPGd_indicator , ECPGd_key_member , ECPGd_length , ECPGd_name ,
  ECPGd_nullable , ECPGd_octet , ECPGd_precision , ECPGd_ret_length ,
  ECPGd_ret_octet , ECPGd_scale , ECPGd_type , ECPGd_EODT ,
  ECPGd_cardinality
}
 
enum  ECPG_statement_type {
  ECPGst_normal , ECPGst_execute , ECPGst_exec_immediate , ECPGst_prepnormal ,
  ECPGst_prepare , ECPGst_exec_with_exprlist
}
 

Macro Definition Documentation

◆ IS_SIMPLE_TYPE

#define IS_SIMPLE_TYPE (   type)    (((type) >= ECPGt_char && (type) <= ECPGt_interval) || ((type) == ECPGt_string) || ((type) == ECPGt_bytea))

Definition at line 92 of file ecpgtype.h.

Enumeration Type Documentation

◆ ECPG_statement_type

Enumerator
ECPGst_normal 
ECPGst_execute 
ECPGst_exec_immediate 
ECPGst_prepnormal 
ECPGst_prepare 
ECPGst_exec_with_exprlist 

Definition at line 95 of file ecpgtype.h.

96 {
103 };
@ ECPGst_normal
Definition: ecpgtype.h:97
@ ECPGst_execute
Definition: ecpgtype.h:98
@ ECPGst_exec_immediate
Definition: ecpgtype.h:99
@ ECPGst_exec_with_exprlist
Definition: ecpgtype.h:102
@ ECPGst_prepare
Definition: ecpgtype.h:101
@ ECPGst_prepnormal
Definition: ecpgtype.h:100

◆ ECPGdtype

enum ECPGdtype
Enumerator
ECPGd_count 
ECPGd_data 
ECPGd_di_code 
ECPGd_di_precision 
ECPGd_indicator 
ECPGd_key_member 
ECPGd_length 
ECPGd_name 
ECPGd_nullable 
ECPGd_octet 
ECPGd_precision 
ECPGd_ret_length 
ECPGd_ret_octet 
ECPGd_scale 
ECPGd_type 
ECPGd_EODT 
ECPGd_cardinality 

Definition at line 71 of file ecpgtype.h.

72 {
73  ECPGd_count = 1,
74  ECPGd_data,
80  ECPGd_name,
87  ECPGd_type,
88  ECPGd_EODT, /* End of descriptor types. */
90 };
@ ECPGd_scale
Definition: ecpgtype.h:86
@ ECPGd_precision
Definition: ecpgtype.h:83
@ ECPGd_length
Definition: ecpgtype.h:79
@ ECPGd_nullable
Definition: ecpgtype.h:81
@ ECPGd_di_precision
Definition: ecpgtype.h:76
@ ECPGd_type
Definition: ecpgtype.h:87
@ ECPGd_cardinality
Definition: ecpgtype.h:89
@ ECPGd_indicator
Definition: ecpgtype.h:77
@ ECPGd_ret_length
Definition: ecpgtype.h:84
@ ECPGd_di_code
Definition: ecpgtype.h:75
@ ECPGd_count
Definition: ecpgtype.h:73
@ ECPGd_name
Definition: ecpgtype.h:80
@ ECPGd_key_member
Definition: ecpgtype.h:78
@ ECPGd_EODT
Definition: ecpgtype.h:88
@ ECPGd_octet
Definition: ecpgtype.h:82
@ ECPGd_ret_octet
Definition: ecpgtype.h:85
@ ECPGd_data
Definition: ecpgtype.h:74

◆ ECPGttype

enum ECPGttype
Enumerator
ECPGt_char 
ECPGt_unsigned_char 
ECPGt_short 
ECPGt_unsigned_short 
ECPGt_int 
ECPGt_unsigned_int 
ECPGt_long 
ECPGt_unsigned_long 
ECPGt_long_long 
ECPGt_unsigned_long_long 
ECPGt_bool 
ECPGt_float 
ECPGt_double 
ECPGt_varchar 
ECPGt_varchar2 
ECPGt_numeric 
ECPGt_decimal 
ECPGt_date 
ECPGt_timestamp 
ECPGt_interval 
ECPGt_array 
ECPGt_struct 
ECPGt_union 
ECPGt_descriptor 
ECPGt_char_variable 
ECPGt_const 
ECPGt_EOIT 
ECPGt_EORT 
ECPGt_NO_INDICATOR 
ECPGt_string 
ECPGt_sqlda 
ECPGt_bytea 

Definition at line 41 of file ecpgtype.h.

42 {
46  ECPGt_bool,
49  ECPGt_numeric, /* this is a decimal that stores its digits in
50  * a malloced array */
51  ECPGt_decimal, /* this is a decimal that stores its digits in
52  * a fixed array */
53  ECPGt_date,
59  ECPGt_descriptor, /* sql descriptor, no C variable */
61  ECPGt_const, /* a constant is needed sometimes */
62  ECPGt_EOIT, /* End of insert types. */
63  ECPGt_EORT, /* End of result types. */
64  ECPGt_NO_INDICATOR, /* no indicator */
65  ECPGt_string, /* trimmed (char *) type */
66  ECPGt_sqlda, /* C struct descriptor */
68 };
@ ECPGt_float
Definition: ecpgtype.h:47
@ ECPGt_EOIT
Definition: ecpgtype.h:62
@ ECPGt_long_long
Definition: ecpgtype.h:45
@ ECPGt_sqlda
Definition: ecpgtype.h:66
@ ECPGt_short
Definition: ecpgtype.h:43
@ ECPGt_decimal
Definition: ecpgtype.h:51
@ ECPGt_char_variable
Definition: ecpgtype.h:60
@ ECPGt_bytea
Definition: ecpgtype.h:67
@ ECPGt_numeric
Definition: ecpgtype.h:49
@ ECPGt_union
Definition: ecpgtype.h:58
@ ECPGt_varchar
Definition: ecpgtype.h:48
@ ECPGt_struct
Definition: ecpgtype.h:57
@ ECPGt_timestamp
Definition: ecpgtype.h:54
@ ECPGt_unsigned_short
Definition: ecpgtype.h:43
@ ECPGt_int
Definition: ecpgtype.h:44
@ ECPGt_long
Definition: ecpgtype.h:44
@ ECPGt_unsigned_char
Definition: ecpgtype.h:43
@ ECPGt_double
Definition: ecpgtype.h:47
@ ECPGt_varchar2
Definition: ecpgtype.h:48
@ ECPGt_array
Definition: ecpgtype.h:56
@ ECPGt_NO_INDICATOR
Definition: ecpgtype.h:64
@ ECPGt_EORT
Definition: ecpgtype.h:63
@ ECPGt_date
Definition: ecpgtype.h:53
@ ECPGt_interval
Definition: ecpgtype.h:55
@ ECPGt_unsigned_long
Definition: ecpgtype.h:44
@ ECPGt_const
Definition: ecpgtype.h:61
@ ECPGt_bool
Definition: ecpgtype.h:46
@ ECPGt_unsigned_long_long
Definition: ecpgtype.h:45
@ ECPGt_unsigned_int
Definition: ecpgtype.h:44
@ ECPGt_descriptor
Definition: ecpgtype.h:59
@ ECPGt_char
Definition: ecpgtype.h:43
@ ECPGt_string
Definition: ecpgtype.h:65