sqlda-compat.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * pgsql/src/interfaces/ecpg/include/sqlda-infx-compat.h
  3. */
  4. #ifndef ECPG_SQLDA_COMPAT_H
  5. #define ECPG_SQLDA_COMPAT_H
  6. struct sqlvar_compat
  7. {
  8. short sqltype; /* variable type */
  9. int sqllen; /* length in bytes */
  10. char *sqldata; /* pointer to data */
  11. short *sqlind; /* pointer to indicator */
  12. char *sqlname; /* variable name */
  13. char *sqlformat; /* reserved for future use */
  14. short sqlitype; /* ind variable type */
  15. short sqlilen; /* ind length in bytes */
  16. char *sqlidata; /* ind data pointer */
  17. int sqlxid; /* extended id type */
  18. char *sqltypename; /* extended type name */
  19. short sqltypelen; /* length of extended type name */
  20. short sqlownerlen; /* length of owner name */
  21. short sqlsourcetype; /* source type for distinct of built-ins */
  22. char *sqlownername; /* owner name */
  23. int sqlsourceid; /* extended id of source type */
  24. /*
  25. * sqlilongdata is new. It supports data that exceeds the 32k limit.
  26. * sqlilen and sqlidata are for backward compatibility and they have
  27. * maximum value of <32K.
  28. */
  29. char *sqlilongdata; /* for data field beyond 32K */
  30. int sqlflags; /* for internal use only */
  31. void *sqlreserved; /* reserved for future use */
  32. };
  33. struct sqlda_compat
  34. {
  35. short sqld;
  36. struct sqlvar_compat *sqlvar;
  37. char desc_name[19]; /* descriptor name */
  38. short desc_occ; /* size of sqlda structure */
  39. struct sqlda_compat *desc_next; /* pointer to next sqlda struct */
  40. void *reserved; /* reserved for future use */
  41. };
  42. #endif /* ECPG_SQLDA_COMPAT_H */