/pgtypes.h

http://github.com/hdbc/hdbc-postgresql · C Header · 77 lines · 62 code · 6 blank · 9 comment · 0 complexity · 542a406486f4971921ebfa351fbc4fd4 MD5 · raw file

  1. /* File: pgtypes.h
  2. *
  3. * Description: See "pgtypes.c"
  4. *
  5. * Comments: See "notice.txt" for copyright and license information.
  6. *
  7. */
  8. #ifndef __PGTYPES_H__
  9. #define __PGTYPES_H__
  10. /* the type numbers are defined by the OID's of the types' rows */
  11. /* in table pg_type */
  12. #ifdef NOT_USED
  13. #define PG_TYPE_LO ???? /* waiting for permanent type */
  14. #endif
  15. #define MS_ACCESS_SERIAL "int identity"
  16. #define PG_TYPE_BOOL 16
  17. #define PG_TYPE_BYTEA 17
  18. #define PG_TYPE_CHAR 18
  19. #define PG_TYPE_NAME 19
  20. #define PG_TYPE_INT8 20
  21. #define PG_TYPE_INT2 21
  22. #define PG_TYPE_INT2VECTOR 22
  23. #define PG_TYPE_INT4 23
  24. #define PG_TYPE_REGPROC 24
  25. #define PG_TYPE_TEXT 25
  26. #define PG_TYPE_OID 26
  27. #define PG_TYPE_TID 27
  28. #define PG_TYPE_XID 28
  29. #define PG_TYPE_CID 29
  30. #define PG_TYPE_OIDVECTOR 30
  31. #define PG_TYPE_SET 32
  32. #define PG_TYPE_XML 142
  33. #define PG_TYPE_XMLARRAY 143
  34. #define PG_TYPE_CHAR2 409
  35. #define PG_TYPE_CHAR4 410
  36. #define PG_TYPE_CHAR8 411
  37. #define PG_TYPE_POINT 600
  38. #define PG_TYPE_LSEG 601
  39. #define PG_TYPE_PATH 602
  40. #define PG_TYPE_BOX 603
  41. #define PG_TYPE_POLYGON 604
  42. #define PG_TYPE_FILENAME 605
  43. #define PG_TYPE_CIDR 650
  44. #define PG_TYPE_FLOAT4 700
  45. #define PG_TYPE_FLOAT8 701
  46. #define PG_TYPE_ABSTIME 702
  47. #define PG_TYPE_RELTIME 703
  48. #define PG_TYPE_TINTERVAL 704
  49. #define PG_TYPE_UNKNOWN 705
  50. #define PG_TYPE_MONEY 790
  51. #define PG_TYPE_OIDINT2 810
  52. #define PG_TYPE_MACADDR 829
  53. #define PG_TYPE_INET 869
  54. #define PG_TYPE_OIDINT4 910
  55. #define PG_TYPE_OIDNAME 911
  56. #define PG_TYPE_TEXTARRAY 1009
  57. #define PG_TYPE_BPCHARARRAY 1014
  58. #define PG_TYPE_VARCHARARRAY 1015
  59. #define PG_TYPE_BPCHAR 1042
  60. #define PG_TYPE_VARCHAR 1043
  61. #define PG_TYPE_DATE 1082
  62. #define PG_TYPE_TIME 1083
  63. #define PG_TYPE_TIMESTAMP_NO_TMZONE 1114 /* since 7.2 */
  64. #define PG_TYPE_DATETIME 1184
  65. #define PG_TYPE_TIME_WITH_TMZONE 1266 /* since 7.1 */
  66. #define PG_TYPE_TIMESTAMP 1296 /* deprecated since 7.0 */
  67. #define PG_TYPE_NUMERIC 1700
  68. #define PG_TYPE_RECORD 2249
  69. #define PG_TYPE_VOID 2278
  70. #define INTERNAL_ASIS_TYPE (-9999)
  71. #endif