00001 /* 00002 * pgsql/src/interfaces/ecpg/include/sqlda-infx-compat.h 00003 */ 00004 00005 #ifndef ECPG_SQLDA_COMPAT_H 00006 #define ECPG_SQLDA_COMPAT_H 00007 00008 struct sqlvar_compat 00009 { 00010 short sqltype; /* variable type */ 00011 int sqllen; /* length in bytes */ 00012 char *sqldata; /* pointer to data */ 00013 short *sqlind; /* pointer to indicator */ 00014 char *sqlname; /* variable name */ 00015 char *sqlformat; /* reserved for future use */ 00016 short sqlitype; /* ind variable type */ 00017 short sqlilen; /* ind length in bytes */ 00018 char *sqlidata; /* ind data pointer */ 00019 int sqlxid; /* extended id type */ 00020 char *sqltypename; /* extended type name */ 00021 short sqltypelen; /* length of extended type name */ 00022 short sqlownerlen; /* length of owner name */ 00023 short sqlsourcetype; /* source type for distinct of built-ins */ 00024 char *sqlownername; /* owner name */ 00025 int sqlsourceid; /* extended id of source type */ 00026 00027 /* 00028 * sqlilongdata is new. It supports data that exceeds the 32k limit. 00029 * sqlilen and sqlidata are for backward compatibility and they have 00030 * maximum value of <32K. 00031 */ 00032 char *sqlilongdata; /* for data field beyond 32K */ 00033 int sqlflags; /* for internal use only */ 00034 void *sqlreserved; /* reserved for future use */ 00035 }; 00036 00037 struct sqlda_compat 00038 { 00039 short sqld; 00040 struct sqlvar_compat *sqlvar; 00041 char desc_name[19]; /* descriptor name */ 00042 short desc_occ; /* size of sqlda structure */ 00043 struct sqlda_compat *desc_next; /* pointer to next sqlda struct */ 00044 void *reserved; /* reserved for future use */ 00045 }; 00046 00047 #endif /* ECPG_SQLDA_COMPAT_H */