Header And Logo

PostgreSQL
| The world's most advanced open source database.

Defines | Enumerations

ecpgtype.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

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

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
}
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 }

Define Documentation

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

Definition at line 91 of file ecpgtype.h.

Referenced by ECPGdump_a_type(), and ECPGfree_type().


Enumeration Type Documentation

Enumerator:
ECPGst_normal 
ECPGst_execute 
ECPGst_exec_immediate 
ECPGst_prepnormal 

Definition at line 94 of file ecpgtype.h.

{
    ECPGst_normal,
    ECPGst_execute,
    ECPGst_exec_immediate,
    ECPGst_prepnormal
};

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 70 of file ecpgtype.h.

{
    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,                 /* End of descriptor types. */
    ECPGd_cardinality
};

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 

Definition at line 41 of file ecpgtype.h.

{
    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,              /* this is a decimal that stores its digits in
                                 * a malloced array */
    ECPGt_decimal,              /* this is a decimal that stores its digits in
                                 * a fixed array */
    ECPGt_date,
    ECPGt_timestamp,
    ECPGt_interval,
    ECPGt_array,
    ECPGt_struct,
    ECPGt_union,
    ECPGt_descriptor,           /* sql descriptor, no C variable */
    ECPGt_char_variable,
    ECPGt_const,                /* a constant is needed sometimes */
    ECPGt_EOIT,                 /* End of insert types. */
    ECPGt_EORT,                 /* End of result types. */
    ECPGt_NO_INDICATOR,         /* no indicator */
    ECPGt_string,               /* trimmed (char *) type */
    ECPGt_sqlda                 /* C struct descriptor */
};