sqlda-native.h 820 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * src/interfaces/ecpg/include/sqlda-native.h
  3. */
  4. #ifndef ECPG_SQLDA_NATIVE_H
  5. #define ECPG_SQLDA_NATIVE_H
  6. /*
  7. * Maximum length for identifiers (e.g. table names, column names,
  8. * function names). Names actually are limited to one less byte than this,
  9. * because the length must include a trailing zero byte.
  10. *
  11. * This should be at least as much as NAMEDATALEN of the database the
  12. * applications run against.
  13. */
  14. #define NAMEDATALEN 64
  15. struct sqlname
  16. {
  17. short length;
  18. char data[NAMEDATALEN];
  19. };
  20. struct sqlvar_struct
  21. {
  22. short sqltype;
  23. short sqllen;
  24. char *sqldata;
  25. short *sqlind;
  26. struct sqlname sqlname;
  27. };
  28. struct sqlda_struct
  29. {
  30. char sqldaid[8];
  31. long sqldabc;
  32. short sqln;
  33. short sqld;
  34. struct sqlda_struct *desc_next;
  35. struct sqlvar_struct sqlvar[1];
  36. };
  37. #endif /* ECPG_SQLDA_NATIVE_H */