home *** CD-ROM | disk | FTP | other *** search
/ Freelog 42 / Freelog042.iso / Alu / Ancestrologie / Sources / InterBase_WI-V6.0.1-server.ZIP / SDK / include / ibase.h < prev    next >
C/C++ Source or Header  |  2001-01-05  |  96KB  |  2,654 lines

  1. /*
  2.  *    MODULE:        ibase.h
  3.  *    DESCRIPTION:    OSRI entrypoints and defines
  4.  *
  5.  * The contents of this file are subject to the Interbase Public
  6.  * License Version 1.0 (the "License"); you may not use this file
  7.  * except in compliance with the License. You may obtain a copy
  8.  * of the License at http:////www.Inprise.com/IPL.html
  9.  *
  10.  * Software distributed under the License is distributed on an
  11.  * "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express
  12.  * or implied. See the License for the specific language governing
  13.  * rights and limitations under the License.
  14.  *
  15.  * The Original Code was created by Inprise Corporation
  16.  * and its predecessors. Portions created by Inprise Corporation are
  17.  *
  18.  * Copyright (C) 2000 Inprise Corporation
  19.  * All Rights Reserved.
  20.  * Contributor(s): ______________________________________.
  21.  */
  22.  
  23. #ifndef _JRD_IBASE_H_
  24. #define _JRD_IBASE_H_
  25.  
  26. #ifndef HARBOR_MERGE
  27. #define HARBOR_MERGE
  28. #endif
  29.  
  30. #define isc_version4
  31.  
  32. #define  ISC_TRUE    1
  33. #define  ISC_FALSE    0
  34. #if !(defined __cplusplus)
  35. #define  ISC__TRUE    ISC_TRUE
  36. #define  ISC__FALSE    ISC_FALSE
  37. #endif
  38.  
  39. #if (defined __osf__ && defined __alpha)
  40. #define  ISC_LONG    int
  41. #define  ISC_ULONG    unsigned int
  42. #else
  43. #define  ISC_LONG    long
  44. #define  ISC_ULONG    unsigned long
  45. #endif
  46.  
  47. #define  ISC_USHORT    unsigned short
  48. #define  ISC_STATUS    long
  49.  
  50. #define  DSQL_close     1
  51. #define  DSQL_drop      2
  52.  
  53.  
  54. /******************************************************************/
  55. /* Define type, export and other stuff based on c/c++ and Windows */
  56. /******************************************************************/
  57.  
  58. #if (defined(_MSC_VER) && defined(_WIN32)) || \
  59.     (defined(__BORLANDC__) && (defined(__WIN32__) || defined(__OS2__)))
  60. #define  ISC_FAR
  61. #define  ISC_EXPORT    __stdcall
  62. #define  ISC_EXPORT_VARARG    __cdecl
  63. typedef           __int64  ISC_INT64;
  64. typedef  unsigned __int64  ISC_UINT64;
  65. #define  ISC_INT64_DEFINED
  66. #else                    /* Not Windows/NT */
  67. #if (defined(__IBMC__) && defined(__OS2__))
  68. #define  ISC_FAR
  69. #define  ISC_EXPORT    _System
  70. #define  ISC_EXPORT_VARARG    ISC_EXPORT
  71. #else                    /* not IBM C Set++ for OS/2 */
  72. #if ( defined( _Windows) || defined( _WINDOWS))
  73. #define  ISC_FAR    __far
  74. #define  ISC_EXPORT     ISC_FAR __cdecl __loadds __export
  75. #define  ISC_EXPORT_VARARG    ISC_EXPORT
  76. #else                    /* Not Windows/NT, OS/2 or Windows */
  77. #define  ISC_FAR
  78. #define  ISC_EXPORT
  79. #define  ISC_EXPORT_VARARG
  80. #endif                    /* Windows and Not Windows/NT or OS/2 */
  81. #endif                    /* IBM C Set++ for OS/2 */
  82. #endif                   /* Windows/NT */
  83.  
  84. /*******************************************************************/
  85. /* 64 bit Integers                                                 */
  86. /*******************************************************************/
  87.  
  88. #ifndef  ISC_INT64_DEFINED              
  89. typedef           long long int  ISC_INT64;    
  90. typedef  unsigned long long int  ISC_UINT64;    
  91. #else
  92. #undef  ISC_INT64_DEFINED
  93. #endif
  94.  
  95. /*******************************************************************/
  96. /* Time & Date Support                                             */
  97. /*******************************************************************/
  98.  
  99. #ifndef _ISC_TIMESTAMP_
  100. typedef long        ISC_DATE;
  101. typedef unsigned long    ISC_TIME;
  102. typedef struct {
  103.     ISC_DATE     timestamp_date;
  104.     ISC_TIME    timestamp_time;
  105. } ISC_TIMESTAMP;
  106. #define _ISC_TIMESTAMP_            1
  107. #endif
  108.  
  109. #define ISC_TIME_SECONDS_PRECISION          10000L
  110. #define ISC_TIME_SECONDS_PRECISION_SCALE    -4
  111.  
  112. /*******************************************************************/
  113. /* Blob id structure                                               */
  114. /*******************************************************************/
  115.  
  116. typedef struct {
  117.     ISC_LONG        gds_quad_high;
  118.     unsigned ISC_LONG    gds_quad_low;
  119. } GDS_QUAD;
  120. #if !(defined __cplusplus)
  121. typedef GDS_QUAD    GDS__QUAD;
  122. #endif                    /* !(defined __cplusplus) */
  123.  
  124. #define    ISC_QUAD    GDS_QUAD
  125. #define    isc_quad_high    gds_quad_high
  126. #define    isc_quad_low    gds_quad_low
  127.  
  128. typedef struct {
  129.     short           array_bound_lower;
  130.     short           array_bound_upper;
  131. } ISC_ARRAY_BOUND;
  132.  
  133. typedef struct {
  134.     unsigned char       array_desc_dtype;
  135.     char                array_desc_scale;
  136.     unsigned short      array_desc_length;
  137.     char                array_desc_field_name [32];
  138.     char                array_desc_relation_name [32];
  139.     short               array_desc_dimensions;
  140.     short               array_desc_flags;
  141.     ISC_ARRAY_BOUND     array_desc_bounds [16];
  142. } ISC_ARRAY_DESC;
  143.  
  144. typedef struct {
  145.     short               blob_desc_subtype;
  146.     short               blob_desc_charset;
  147.     short               blob_desc_segment_size;
  148.     unsigned char       blob_desc_field_name [32];
  149.     unsigned char       blob_desc_relation_name [32];
  150. } ISC_BLOB_DESC;
  151.  
  152.  
  153. /***************************/
  154. /* Blob control structure  */
  155. /***************************/
  156.  
  157. typedef struct isc_blob_ctl{
  158.     ISC_STATUS      (ISC_FAR *ctl_source)();    /* Source filter */
  159.     struct isc_blob_ctl ISC_FAR *ctl_source_handle; /* Argument to pass to source */
  160.                         /* filter */
  161.     short          ctl_to_sub_type;      /* Target type */
  162.     short          ctl_from_sub_type;    /* Source type */
  163.     unsigned short        ctl_buffer_length;    /* Length of buffer */
  164.     unsigned short        ctl_segment_length;      /* Length of current segment */
  165.     unsigned short        ctl_bpb_length;    /* Length of blob parameter */
  166.                             /* block */
  167.     char      ISC_FAR *ctl_bpb;        /* Address of blob parameter */ 
  168.                         /* block */
  169.     unsigned char ISC_FAR *ctl_buffer;        /* Address of segment buffer */
  170.     ISC_LONG           ctl_max_segment;    /* Length of longest segment */
  171.     ISC_LONG           ctl_number_segments;     /* Total number of segments */
  172.     ISC_LONG            ctl_total_length;      /* Total length of blob */
  173.     ISC_STATUS      ISC_FAR *ctl_status;        /* Address of status vector */
  174.     long          ctl_data [8];          /* Application specific data */
  175. } ISC_FAR *ISC_BLOB_CTL;
  176.  
  177. /***************************/
  178. /* Blob stream definitions */ 
  179. /***************************/
  180.  
  181. typedef struct bstream {
  182.     void    ISC_FAR *bstr_blob;      /* Blob handle */
  183.     char    ISC_FAR *bstr_buffer;    /* Address of buffer */
  184.     char    ISC_FAR *bstr_ptr;    /* Next character */
  185.     short      bstr_length;        /* Length of buffer */
  186.     short      bstr_cnt;        /* Characters in buffer */
  187.     char            bstr_mode;          /* (mode) ? OUTPUT : INPUT */
  188. } BSTREAM;
  189.  
  190. #define getb(p)    (--(p)->bstr_cnt >= 0 ? *(p)->bstr_ptr++ & 0377: BLOB_get (p))
  191. #define putb(x,p) (((x) == '\n' || (!(--(p)->bstr_cnt))) ? BLOB_put ((x),p) : ((int) (*(p)->bstr_ptr++ = (unsigned) (x))))
  192. #define putbx(x,p) ((!(--(p)->bstr_cnt)) ? BLOB_put ((x),p) : ((int) (*(p)->bstr_ptr++ = (unsigned) (x))))
  193.  
  194. /***************************/
  195. /* Dynamic SQL definitions */
  196. /***************************/
  197.  
  198. /******************************/
  199. /* Declare the extended SQLDA */
  200. /******************************/
  201.  
  202. typedef struct {
  203.     short    sqltype;        /* datatype of field */
  204.     short    sqlscale;        /* scale factor */
  205.     short    sqlsubtype;        /* datatype subtype - BLOBs & Text */
  206.                     /* types only */
  207.     short    sqllen;            /* length of data area */
  208.     char  ISC_FAR *sqldata;        /* address of data */
  209.     short ISC_FAR *sqlind;        /* address of indicator variable */
  210.     short      sqlname_length;        /* length of sqlname field */
  211.     char    sqlname [32];        /* name of field, name length + space */
  212.                     /* for NULL */
  213.     short    relname_length;        /* length of relation name */
  214.     char    relname [32];        /* field's relation name + space for */
  215.                     /* NULL */
  216.     short    ownname_length;        /* length of owner name */
  217.     char    ownname [32];        /* relation's owner name + space for */
  218.                     /* NULL */
  219.     short    aliasname_length;     /* length of alias name */
  220.     char    aliasname [32];        /* relation's alias name + space for */
  221.                     /* NULL */
  222. } XSQLVAR;
  223.  
  224. typedef struct {
  225.     short    version;        /* version of this XSQLDA */
  226.     char    sqldaid [8];        /* XSQLDA name field */
  227.     ISC_LONG    sqldabc;        /* length in bytes of SQLDA */
  228.     short    sqln;            /* number of fields allocated */
  229.     short    sqld;            /* actual number of fields */
  230.     XSQLVAR    sqlvar [1];        /* first field address */
  231. } XSQLDA;
  232.  
  233. #define XSQLDA_LENGTH(n)    (sizeof (XSQLDA) + ((n)-1) * sizeof (XSQLVAR))
  234.  
  235. #define SQLDA_VERSION1            1
  236.  
  237. #define SQL_DIALECT_V5            1/* meaning is same as DIALECT_xsqlda */
  238. #define SQL_DIALECT_V6_TRANSITION    2/* flagging anything that is delimited
  239.                                             by double quotes as an error and
  240.                                             flagging keyword DATE as an error */
  241. #define SQL_DIALECT_V6            3/* supports SQL delimited identifier,
  242.                                             SQLDATE/DATE, TIME, TIMESTAMP,
  243.                                             CURRENT_DATE, CURRENT_TIME,
  244.                                             CURRENT_TIMESTAMP, and 64-bit exact
  245.                                             numeric type */
  246. #define SQL_DIALECT_CURRENT        SQL_DIALECT_V6/* latest IB DIALECT */
  247.  
  248. /********************************/
  249. /* InterBase Handle Definitions */
  250. /********************************/
  251.  
  252. typedef void     ISC_FAR *isc_att_handle;
  253.  
  254. typedef void     ISC_FAR *isc_blob_handle;
  255. typedef void     ISC_FAR *isc_db_handle;
  256. typedef void     ISC_FAR *isc_form_handle;
  257. typedef void     ISC_FAR *isc_req_handle;
  258. typedef void     ISC_FAR *isc_stmt_handle;
  259. typedef void     ISC_FAR *isc_svc_handle;
  260. typedef void     ISC_FAR *isc_tr_handle;
  261. typedef void     ISC_FAR *isc_win_handle;
  262. typedef void    (ISC_FAR *isc_callback)();
  263. typedef ISC_LONG     isc_resv_handle;
  264.  
  265. /***************************/
  266. /* OSRI database functions */
  267. /***************************/
  268.  
  269. #if defined(__cplusplus) || defined(__STDC__) || defined(_Windows) || \
  270.     (defined(_MSC_VER) && defined(WIN32)) || defined( _WINDOWS) || \
  271.     (defined(__BORLANDC__) && (defined(__WIN32__) || defined(__OS2__))) || \
  272.     (defined(__IBMC__) && defined(__OS2__)) || defined(AIX_PPC)
  273.  
  274. #ifdef __cplusplus
  275. extern "C" {
  276. #endif
  277.  
  278. ISC_STATUS  ISC_EXPORT isc_attach_database (ISC_STATUS ISC_FAR *, 
  279.                         short, 
  280.                         char ISC_FAR *, 
  281.                         isc_db_handle ISC_FAR *, 
  282.                         short, 
  283.                         char ISC_FAR *);
  284.  
  285. ISC_STATUS  ISC_EXPORT isc_array_gen_sdl (ISC_STATUS ISC_FAR *, 
  286.                       ISC_ARRAY_DESC ISC_FAR *,
  287.                       short ISC_FAR *, 
  288.                       char ISC_FAR *, 
  289.                       short ISC_FAR *);
  290.  
  291. ISC_STATUS  ISC_EXPORT isc_array_get_slice (ISC_STATUS ISC_FAR *, 
  292.                         isc_db_handle ISC_FAR *, 
  293.                         isc_tr_handle ISC_FAR *, 
  294.                         ISC_QUAD ISC_FAR *, 
  295.                         ISC_ARRAY_DESC ISC_FAR *, 
  296.                         void ISC_FAR *, 
  297.                         ISC_LONG ISC_FAR *);
  298.  
  299. ISC_STATUS  ISC_EXPORT isc_array_lookup_bounds (ISC_STATUS ISC_FAR *, 
  300.                         isc_db_handle ISC_FAR *, 
  301.                         isc_tr_handle ISC_FAR *, 
  302.                         char ISC_FAR *,
  303.                         char ISC_FAR *, 
  304.                         ISC_ARRAY_DESC ISC_FAR *);
  305.  
  306. ISC_STATUS  ISC_EXPORT isc_array_lookup_desc (ISC_STATUS ISC_FAR *, 
  307.                           isc_db_handle ISC_FAR *,
  308.                           isc_tr_handle ISC_FAR *, 
  309.                           char ISC_FAR *, 
  310.                           char ISC_FAR *, 
  311.                           ISC_ARRAY_DESC ISC_FAR *);
  312.  
  313. ISC_STATUS  ISC_EXPORT isc_array_set_desc (ISC_STATUS ISC_FAR *, 
  314.                        char ISC_FAR *, 
  315.                        char ISC_FAR *,
  316.                        short ISC_FAR *, 
  317.                        short ISC_FAR *, 
  318.                        short ISC_FAR *, 
  319.                        ISC_ARRAY_DESC ISC_FAR *);
  320.  
  321. ISC_STATUS  ISC_EXPORT isc_array_put_slice (ISC_STATUS ISC_FAR *, 
  322.                         isc_db_handle ISC_FAR *, 
  323.                         isc_tr_handle ISC_FAR *, 
  324.                         ISC_QUAD ISC_FAR *, 
  325.                         ISC_ARRAY_DESC ISC_FAR *, 
  326.                         void ISC_FAR *, 
  327.                         ISC_LONG ISC_FAR *);
  328.  
  329. void       ISC_EXPORT isc_blob_default_desc (ISC_BLOB_DESC ISC_FAR *,
  330.                                         unsigned char ISC_FAR *,
  331.                                         unsigned char ISC_FAR *);
  332.  
  333. ISC_STATUS ISC_EXPORT isc_blob_gen_bpb (ISC_STATUS ISC_FAR *,
  334.                     ISC_BLOB_DESC ISC_FAR *,
  335.                     ISC_BLOB_DESC ISC_FAR *,
  336.                     unsigned short,
  337.                     unsigned char ISC_FAR *,
  338.                     unsigned short ISC_FAR *);
  339.  
  340. ISC_STATUS  ISC_EXPORT isc_blob_info (ISC_STATUS ISC_FAR *, 
  341.                       isc_blob_handle ISC_FAR *, 
  342.                       short,
  343.                        char ISC_FAR *, 
  344.                       short, 
  345.                       char ISC_FAR *);
  346.  
  347. ISC_STATUS ISC_EXPORT isc_blob_lookup_desc (ISC_STATUS ISC_FAR *,
  348.                         isc_db_handle ISC_FAR *,
  349.                         isc_tr_handle ISC_FAR *,
  350.                         unsigned char ISC_FAR *,
  351.                         unsigned char ISC_FAR *,
  352.                         ISC_BLOB_DESC ISC_FAR *,
  353.                         unsigned char ISC_FAR *);
  354.  
  355. ISC_STATUS ISC_EXPORT isc_blob_set_desc (ISC_STATUS ISC_FAR *,
  356.                      unsigned char ISC_FAR *,
  357.                      unsigned char ISC_FAR *,
  358.                      short,
  359.                      short,
  360.                      short,
  361.                      ISC_BLOB_DESC ISC_FAR *);
  362.  
  363. ISC_STATUS  ISC_EXPORT isc_cancel_blob (ISC_STATUS ISC_FAR *, 
  364.                         isc_blob_handle ISC_FAR *);
  365.  
  366. ISC_STATUS  ISC_EXPORT isc_cancel_events (ISC_STATUS ISC_FAR *, 
  367.                       isc_db_handle ISC_FAR *, 
  368.                       ISC_LONG ISC_FAR *);
  369.  
  370. ISC_STATUS  ISC_EXPORT isc_close_blob (ISC_STATUS ISC_FAR *, 
  371.                        isc_blob_handle ISC_FAR *);
  372.  
  373. ISC_STATUS  ISC_EXPORT isc_commit_retaining (ISC_STATUS ISC_FAR *, 
  374.                          isc_tr_handle ISC_FAR *);
  375.  
  376. ISC_STATUS  ISC_EXPORT isc_commit_transaction (ISC_STATUS ISC_FAR *, 
  377.                            isc_tr_handle ISC_FAR *);
  378.  
  379. ISC_STATUS  ISC_EXPORT isc_create_blob (ISC_STATUS ISC_FAR *, 
  380.                     isc_db_handle ISC_FAR *, 
  381.                     isc_tr_handle ISC_FAR *, 
  382.                     isc_blob_handle ISC_FAR *, 
  383.                     ISC_QUAD ISC_FAR *);
  384.  
  385. ISC_STATUS  ISC_EXPORT isc_create_blob2 (ISC_STATUS ISC_FAR *, 
  386.                      isc_db_handle ISC_FAR *, 
  387.                      isc_tr_handle ISC_FAR *, 
  388.                      isc_blob_handle ISC_FAR *, 
  389.                      ISC_QUAD ISC_FAR *, 
  390.                      short,  
  391.                      char ISC_FAR *); 
  392.  
  393. ISC_STATUS  ISC_EXPORT isc_create_database (ISC_STATUS ISC_FAR *, 
  394.                         short, 
  395.                         char ISC_FAR *, 
  396.                         isc_db_handle ISC_FAR *, 
  397.                         short, 
  398.                         char ISC_FAR *, 
  399.                         short);
  400.  
  401. ISC_STATUS  ISC_EXPORT isc_database_info (ISC_STATUS ISC_FAR *, 
  402.                       isc_db_handle ISC_FAR *, 
  403.                       short, 
  404.                       char ISC_FAR *, 
  405.                       short, 
  406.                       char ISC_FAR *);
  407.  
  408. void        ISC_EXPORT isc_decode_date (ISC_QUAD ISC_FAR *, 
  409.                     void ISC_FAR *);
  410.  
  411. void        ISC_EXPORT isc_decode_sql_date (ISC_DATE ISC_FAR *, 
  412.                     void ISC_FAR *);
  413.  
  414. void        ISC_EXPORT isc_decode_sql_time (ISC_TIME ISC_FAR *, 
  415.                     void ISC_FAR *);
  416.  
  417. void        ISC_EXPORT isc_decode_timestamp (ISC_TIMESTAMP ISC_FAR *, 
  418.                     void ISC_FAR *);
  419.  
  420. ISC_STATUS  ISC_EXPORT isc_detach_database (ISC_STATUS ISC_FAR *,  
  421.                         isc_db_handle ISC_FAR *);
  422.  
  423. ISC_STATUS  ISC_EXPORT isc_drop_database (ISC_STATUS ISC_FAR *,  
  424.                       isc_db_handle ISC_FAR *);
  425.  
  426. ISC_STATUS  ISC_EXPORT isc_dsql_allocate_statement (ISC_STATUS ISC_FAR *, 
  427.                             isc_db_handle ISC_FAR *, 
  428.                             isc_stmt_handle ISC_FAR *);
  429.  
  430. ISC_STATUS  ISC_EXPORT isc_dsql_alloc_statement2 (ISC_STATUS ISC_FAR *, 
  431.                           isc_db_handle ISC_FAR *, 
  432.                           isc_stmt_handle ISC_FAR *);
  433.  
  434. ISC_STATUS  ISC_EXPORT isc_dsql_describe (ISC_STATUS ISC_FAR *, 
  435.                       isc_stmt_handle ISC_FAR *, 
  436.                       unsigned short, 
  437.                       XSQLDA ISC_FAR *);
  438.  
  439. ISC_STATUS  ISC_EXPORT isc_dsql_describe_bind (ISC_STATUS ISC_FAR *, 
  440.                            isc_stmt_handle ISC_FAR *, 
  441.                            unsigned short, 
  442.                            XSQLDA ISC_FAR *);
  443.  
  444. ISC_STATUS  ISC_EXPORT isc_dsql_exec_immed2 (ISC_STATUS ISC_FAR *, 
  445.                          isc_db_handle ISC_FAR *, 
  446.                          isc_tr_handle ISC_FAR *, 
  447.                          unsigned short, 
  448.                          char ISC_FAR *, 
  449.                          unsigned short, 
  450.                          XSQLDA ISC_FAR *, 
  451.                          XSQLDA ISC_FAR *);
  452.  
  453. ISC_STATUS  ISC_EXPORT isc_dsql_execute (ISC_STATUS ISC_FAR *, 
  454.                      isc_tr_handle ISC_FAR *,
  455.                      isc_stmt_handle ISC_FAR *, 
  456.                      unsigned short, 
  457.                      XSQLDA ISC_FAR *);
  458.  
  459. ISC_STATUS  ISC_EXPORT isc_dsql_execute2 (ISC_STATUS ISC_FAR *, 
  460.                       isc_tr_handle ISC_FAR *,
  461.                       isc_stmt_handle ISC_FAR *, 
  462.                       unsigned short, 
  463.                       XSQLDA ISC_FAR *,
  464.                       XSQLDA ISC_FAR *);
  465.  
  466. ISC_STATUS  ISC_EXPORT isc_dsql_execute_immediate (ISC_STATUS ISC_FAR *, 
  467.                            isc_db_handle ISC_FAR *, 
  468.                            isc_tr_handle ISC_FAR *, 
  469.                            unsigned short, 
  470.                            char ISC_FAR *, 
  471.                            unsigned short, 
  472.                            XSQLDA ISC_FAR *);
  473.  
  474. ISC_STATUS  ISC_EXPORT isc_dsql_fetch (ISC_STATUS ISC_FAR *, 
  475.                        isc_stmt_handle ISC_FAR *, 
  476.                        unsigned short, 
  477.                        XSQLDA ISC_FAR *);
  478.  
  479. ISC_STATUS  ISC_EXPORT isc_dsql_finish (isc_db_handle ISC_FAR *);
  480.  
  481. ISC_STATUS  ISC_EXPORT isc_dsql_free_statement (ISC_STATUS ISC_FAR *, 
  482.                         isc_stmt_handle ISC_FAR *, 
  483.                         unsigned short);
  484.  
  485. ISC_STATUS  ISC_EXPORT isc_dsql_insert (ISC_STATUS ISC_FAR *, 
  486.                        isc_stmt_handle ISC_FAR *, 
  487.                        unsigned short, 
  488.                        XSQLDA ISC_FAR *);
  489.  
  490. ISC_STATUS  ISC_EXPORT isc_dsql_prepare (ISC_STATUS ISC_FAR *, 
  491.                      isc_tr_handle ISC_FAR *, 
  492.                      isc_stmt_handle ISC_FAR *, 
  493.                      unsigned short, 
  494.                      char ISC_FAR *, 
  495.                      unsigned short, 
  496.                       XSQLDA ISC_FAR *);
  497.  
  498. ISC_STATUS  ISC_EXPORT isc_dsql_set_cursor_name (ISC_STATUS ISC_FAR *, 
  499.                          isc_stmt_handle ISC_FAR *, 
  500.                          char ISC_FAR *, 
  501.                          unsigned short);
  502.  
  503. ISC_STATUS  ISC_EXPORT isc_dsql_sql_info (ISC_STATUS ISC_FAR *, 
  504.                       isc_stmt_handle ISC_FAR *, 
  505.                       short, 
  506.                       char ISC_FAR *, 
  507.                       short, 
  508.                       char ISC_FAR *);
  509.  
  510. void        ISC_EXPORT isc_encode_date (void ISC_FAR *, 
  511.                     ISC_QUAD ISC_FAR *);
  512.  
  513. void        ISC_EXPORT isc_encode_sql_date (void ISC_FAR *, 
  514.                     ISC_DATE ISC_FAR *);
  515.  
  516. void        ISC_EXPORT isc_encode_sql_time (void ISC_FAR *, 
  517.                     ISC_TIME ISC_FAR *);
  518.  
  519. void        ISC_EXPORT isc_encode_timestamp (void ISC_FAR *, 
  520.                     ISC_TIMESTAMP ISC_FAR *);
  521.  
  522. ISC_LONG    ISC_EXPORT_VARARG isc_event_block (char ISC_FAR * ISC_FAR *, 
  523.                            char ISC_FAR * ISC_FAR *, 
  524.                            unsigned short, ...);
  525.  
  526. void        ISC_EXPORT isc_event_counts (unsigned ISC_LONG ISC_FAR *, 
  527.                      short, 
  528.                      char ISC_FAR *,
  529.                      char ISC_FAR *);
  530.  
  531. void        ISC_EXPORT_VARARG isc_expand_dpb (char ISC_FAR * ISC_FAR *, 
  532.                           short ISC_FAR *, 
  533.                           ...);
  534.  
  535. int        ISC_EXPORT isc_modify_dpb (char ISC_FAR * ISC_FAR *, 
  536.                      short ISC_FAR *, unsigned short,
  537.                      char ISC_FAR *, short );
  538.  
  539. ISC_LONG    ISC_EXPORT isc_free (char ISC_FAR *);
  540.  
  541. ISC_STATUS  ISC_EXPORT isc_get_segment (ISC_STATUS ISC_FAR *, 
  542.                         isc_blob_handle ISC_FAR *, 
  543.                         unsigned short ISC_FAR *, 
  544.                         unsigned short, 
  545.                         char ISC_FAR *);
  546.  
  547. ISC_STATUS  ISC_EXPORT isc_get_slice (ISC_STATUS ISC_FAR *, 
  548.                       isc_db_handle ISC_FAR *, 
  549.                       isc_tr_handle ISC_FAR *, 
  550.                        ISC_QUAD ISC_FAR *, 
  551.                        short, 
  552.                       char ISC_FAR *, 
  553.                       short, 
  554.                       ISC_LONG ISC_FAR *, 
  555.                       ISC_LONG, 
  556.                       void ISC_FAR *, 
  557.                       ISC_LONG ISC_FAR *);
  558.  
  559. ISC_STATUS  ISC_EXPORT isc_interprete (char ISC_FAR *, 
  560.                        ISC_STATUS ISC_FAR * ISC_FAR *);
  561.  
  562. ISC_STATUS  ISC_EXPORT isc_open_blob (ISC_STATUS ISC_FAR *, 
  563.                       isc_db_handle ISC_FAR *, 
  564.                       isc_tr_handle ISC_FAR *, 
  565.                       isc_blob_handle ISC_FAR *, 
  566.                       ISC_QUAD ISC_FAR *);
  567.  
  568. ISC_STATUS  ISC_EXPORT isc_open_blob2 (ISC_STATUS ISC_FAR *, 
  569.                        isc_db_handle ISC_FAR *, 
  570.                        isc_tr_handle ISC_FAR *,
  571.                        isc_blob_handle ISC_FAR *, 
  572.                        ISC_QUAD ISC_FAR *, 
  573.                        short,  
  574.                        char ISC_FAR *);
  575.  
  576. ISC_STATUS  ISC_EXPORT isc_prepare_transaction2 (ISC_STATUS ISC_FAR *, 
  577.                          isc_tr_handle ISC_FAR *, 
  578.                          short, 
  579.                          char ISC_FAR *);
  580.  
  581. void        ISC_EXPORT isc_print_sqlerror (short, 
  582.                        ISC_STATUS ISC_FAR *);
  583.  
  584. ISC_STATUS  ISC_EXPORT isc_print_status (ISC_STATUS ISC_FAR *);
  585.  
  586. ISC_STATUS  ISC_EXPORT isc_put_segment (ISC_STATUS ISC_FAR *, 
  587.                     isc_blob_handle ISC_FAR *, 
  588.                     unsigned short, 
  589.                     char ISC_FAR *);
  590.  
  591. ISC_STATUS  ISC_EXPORT isc_put_slice (ISC_STATUS ISC_FAR *, 
  592.                       isc_db_handle ISC_FAR *, 
  593.                       isc_tr_handle ISC_FAR *, 
  594.                       ISC_QUAD ISC_FAR *, 
  595.                       short, 
  596.                       char ISC_FAR *, 
  597.                       short, 
  598.                       ISC_LONG ISC_FAR *, 
  599.                       ISC_LONG, 
  600.                       void ISC_FAR *);
  601.  
  602. ISC_STATUS  ISC_EXPORT isc_que_events (ISC_STATUS ISC_FAR *, 
  603.                        isc_db_handle ISC_FAR *, 
  604.                        ISC_LONG ISC_FAR *, 
  605.                        short, 
  606.                        char ISC_FAR *, 
  607.                        isc_callback, 
  608.                        void ISC_FAR *);
  609.  
  610. ISC_STATUS  ISC_EXPORT isc_rollback_retaining (ISC_STATUS ISC_FAR *, 
  611.                          isc_tr_handle ISC_FAR *);
  612.  
  613. ISC_STATUS  ISC_EXPORT isc_rollback_transaction (ISC_STATUS ISC_FAR *, 
  614.                          isc_tr_handle ISC_FAR *);
  615.  
  616. ISC_STATUS  ISC_EXPORT isc_start_multiple (ISC_STATUS ISC_FAR *, 
  617.                        isc_tr_handle ISC_FAR *, 
  618.                        short, 
  619.                        void ISC_FAR *);
  620.  
  621. ISC_STATUS  ISC_EXPORT_VARARG isc_start_transaction (ISC_STATUS ISC_FAR *, 
  622.                              isc_tr_handle ISC_FAR *,
  623.                              short, ...);
  624.  
  625. ISC_LONG    ISC_EXPORT isc_sqlcode (ISC_STATUS ISC_FAR *);
  626.  
  627. void        ISC_EXPORT isc_sql_interprete (short, 
  628.                        char ISC_FAR *, 
  629.                        short);
  630.  
  631. ISC_STATUS  ISC_EXPORT isc_transaction_info (ISC_STATUS ISC_FAR *,  
  632.                          isc_tr_handle ISC_FAR *, 
  633.                          short, 
  634.                          char ISC_FAR *, 
  635.                          short,  
  636.                          char ISC_FAR *);
  637.  
  638. ISC_STATUS  ISC_EXPORT isc_transact_request (ISC_STATUS ISC_FAR *,  
  639.                          isc_db_handle ISC_FAR *, 
  640.                          isc_tr_handle ISC_FAR *,
  641.                          unsigned short, 
  642.                          char ISC_FAR *, 
  643.                          unsigned short,  
  644.                          char ISC_FAR *,
  645.                          unsigned short,
  646.                          char ISC_FAR *);
  647.  
  648. ISC_LONG    ISC_EXPORT isc_vax_integer (char ISC_FAR *, 
  649.                     short);
  650.  
  651. ISC_INT64   ISC_EXPORT isc_portable_integer  (unsigned char ISC_FAR *,
  652.                                               short);
  653.  
  654. /*************************************/
  655. /* Security Functions and structures */
  656. /*************************************/
  657.  
  658. #define sec_uid_spec            0x01
  659. #define sec_gid_spec            0x02
  660. #define sec_server_spec            0x04
  661. #define sec_password_spec        0x08
  662. #define sec_group_name_spec        0x10
  663. #define sec_first_name_spec        0x20
  664. #define sec_middle_name_spec        0x40
  665. #define sec_last_name_spec        0x80
  666. #define sec_dba_user_name_spec      0x100
  667. #define sec_dba_password_spec       0x200
  668.  
  669. #define sec_protocol_tcpip            1
  670. #define sec_protocol_netbeui          2
  671. #define sec_protocol_spx              3
  672. #define sec_protocol_local            4
  673.  
  674. typedef struct {
  675.     short  sec_flags;             /* which fields are specified */
  676.     int    uid;                 /* the user's id */
  677.     int       gid;                 /* the user's group id */
  678.     int    protocol;             /* protocol to use for connection */
  679.     char   ISC_FAR *server;          /* server to administer */
  680.     char   ISC_FAR *user_name;       /* the user's name */
  681.     char   ISC_FAR *password;        /* the user's password */
  682.     char   ISC_FAR *group_name;      /* the group name */
  683.     char   ISC_FAR *first_name;         /* the user's first name */
  684.     char   ISC_FAR *middle_name;     /* the user's middle name */
  685.     char   ISC_FAR *last_name;         /* the user's last name */
  686.     char   ISC_FAR *dba_user_name;   /* the dba user name */
  687.     char   ISC_FAR *dba_password;    /* the dba password */
  688. } USER_SEC_DATA;
  689.  
  690. int ISC_EXPORT isc_add_user (ISC_STATUS ISC_FAR *, USER_SEC_DATA *);
  691.  
  692. int ISC_EXPORT isc_delete_user (ISC_STATUS ISC_FAR *, USER_SEC_DATA *);
  693.  
  694. int ISC_EXPORT isc_modify_user (ISC_STATUS ISC_FAR *, USER_SEC_DATA *);
  695.  
  696. /**********************************/
  697. /*  Other OSRI functions          */
  698. /**********************************/
  699.                                           
  700. ISC_STATUS  ISC_EXPORT isc_compile_request (ISC_STATUS ISC_FAR *, 
  701.                         isc_db_handle ISC_FAR *,
  702.                           isc_req_handle ISC_FAR *, 
  703.                         short, 
  704.                         char ISC_FAR *);
  705.  
  706. ISC_STATUS  ISC_EXPORT isc_compile_request2 (ISC_STATUS ISC_FAR *, 
  707.                          isc_db_handle ISC_FAR *,
  708.                          isc_req_handle ISC_FAR *, 
  709.                          short, 
  710.                          char ISC_FAR *);
  711.  
  712. ISC_STATUS  ISC_EXPORT isc_ddl (ISC_STATUS ISC_FAR *,
  713.                     isc_db_handle ISC_FAR *, 
  714.                     isc_tr_handle ISC_FAR *,
  715.                     short, 
  716.                     char ISC_FAR *);
  717.  
  718. ISC_STATUS  ISC_EXPORT isc_prepare_transaction (ISC_STATUS ISC_FAR *, 
  719.                         isc_tr_handle ISC_FAR *);
  720.  
  721.  
  722. ISC_STATUS  ISC_EXPORT isc_receive (ISC_STATUS ISC_FAR *, 
  723.                     isc_req_handle ISC_FAR *, 
  724.                     short, 
  725.                      short, 
  726.                     void ISC_FAR *, 
  727.                     short);
  728.  
  729. ISC_STATUS  ISC_EXPORT isc_reconnect_transaction (ISC_STATUS ISC_FAR *,
  730.                           isc_db_handle ISC_FAR *, 
  731.                           isc_tr_handle ISC_FAR *, 
  732.                           short, 
  733.                           char ISC_FAR *);
  734.  
  735. ISC_STATUS  ISC_EXPORT isc_release_request (ISC_STATUS ISC_FAR *, 
  736.                         isc_req_handle ISC_FAR *);
  737.  
  738. ISC_STATUS  ISC_EXPORT isc_request_info (ISC_STATUS ISC_FAR *,  
  739.                      isc_req_handle ISC_FAR *, 
  740.                      short, 
  741.                        short, 
  742.                      char ISC_FAR *, 
  743.                      short, 
  744.                      char ISC_FAR *);     
  745.  
  746. ISC_STATUS  ISC_EXPORT isc_seek_blob (ISC_STATUS ISC_FAR *, 
  747.                       isc_blob_handle ISC_FAR *, 
  748.                       short, 
  749.                       ISC_LONG, 
  750.                       ISC_LONG ISC_FAR *);
  751.  
  752. ISC_STATUS  ISC_EXPORT isc_send (ISC_STATUS ISC_FAR *, 
  753.                  isc_req_handle ISC_FAR *, 
  754.                  short, 
  755.                  short,
  756.                  void ISC_FAR *, 
  757.                  short);
  758.  
  759. ISC_STATUS  ISC_EXPORT isc_start_and_send (ISC_STATUS ISC_FAR *, 
  760.                        isc_req_handle ISC_FAR *, 
  761.                        isc_tr_handle ISC_FAR *, 
  762.                        short, 
  763.                        short, 
  764.                        void ISC_FAR *, 
  765.                        short);
  766.  
  767. ISC_STATUS  ISC_EXPORT isc_start_request (ISC_STATUS ISC_FAR *, 
  768.                       isc_req_handle ISC_FAR *,
  769.                       isc_tr_handle ISC_FAR *,
  770.                       short);
  771.  
  772. ISC_STATUS  ISC_EXPORT isc_unwind_request (ISC_STATUS ISC_FAR *, 
  773.                        isc_tr_handle ISC_FAR *,
  774.                        short);
  775.  
  776. ISC_STATUS  ISC_EXPORT isc_wait_for_event (ISC_STATUS ISC_FAR *, 
  777.                        isc_db_handle ISC_FAR *, 
  778.                        short, 
  779.                        char ISC_FAR *, 
  780.                        char ISC_FAR *);
  781.  
  782. /*****************************/
  783. /* Other Sql functions       */
  784. /*****************************/
  785.  
  786. ISC_STATUS  ISC_EXPORT isc_close (ISC_STATUS ISC_FAR *, 
  787.                   char ISC_FAR *);
  788.  
  789. ISC_STATUS  ISC_EXPORT isc_declare (ISC_STATUS ISC_FAR *, 
  790.                     char ISC_FAR *, 
  791.                     char ISC_FAR *);
  792.  
  793. ISC_STATUS  ISC_EXPORT isc_describe (ISC_STATUS ISC_FAR *, 
  794.                     char ISC_FAR *, 
  795.                     XSQLDA ISC_FAR *);
  796.  
  797. ISC_STATUS  ISC_EXPORT isc_describe_bind (ISC_STATUS ISC_FAR *, 
  798.                       char ISC_FAR *, 
  799.                       XSQLDA ISC_FAR *);
  800.  
  801. ISC_STATUS  ISC_EXPORT isc_execute (ISC_STATUS ISC_FAR *, 
  802.                     isc_tr_handle ISC_FAR *, 
  803.                     char ISC_FAR *, 
  804.                     XSQLDA ISC_FAR *);
  805.  
  806. ISC_STATUS  ISC_EXPORT isc_execute_immediate (ISC_STATUS ISC_FAR *, 
  807.                           isc_db_handle ISC_FAR *,
  808.                           isc_tr_handle ISC_FAR *, 
  809.                           short ISC_FAR *, 
  810.                           char ISC_FAR *);
  811.  
  812. ISC_STATUS  ISC_EXPORT isc_fetch (ISC_STATUS ISC_FAR *, 
  813.                   char ISC_FAR *, 
  814.                   XSQLDA ISC_FAR *);
  815.  
  816. ISC_STATUS  ISC_EXPORT isc_open (ISC_STATUS ISC_FAR *, 
  817.                  isc_tr_handle ISC_FAR *, 
  818.                  char ISC_FAR *, 
  819.                  XSQLDA ISC_FAR *);
  820.  
  821. ISC_STATUS  ISC_EXPORT isc_prepare (ISC_STATUS ISC_FAR *, 
  822.                     isc_db_handle ISC_FAR *, 
  823.                     isc_tr_handle ISC_FAR *, 
  824.                     char ISC_FAR *, 
  825.                     short ISC_FAR *, 
  826.                     char ISC_FAR *, 
  827.                     XSQLDA ISC_FAR *);
  828.  
  829. /*************************************/
  830. /* Other Dynamic sql functions       */
  831. /*************************************/
  832.  
  833. ISC_STATUS  ISC_EXPORT isc_dsql_execute_m (ISC_STATUS ISC_FAR *, 
  834.                        isc_tr_handle ISC_FAR *,
  835.                        isc_stmt_handle ISC_FAR *, 
  836.                        unsigned short, 
  837.                        char ISC_FAR *, 
  838.                        unsigned short, 
  839.                        unsigned short, 
  840.                        char ISC_FAR *);
  841.  
  842. ISC_STATUS  ISC_EXPORT isc_dsql_execute2_m (ISC_STATUS ISC_FAR *, 
  843.                        isc_tr_handle ISC_FAR *,
  844.                        isc_stmt_handle ISC_FAR *, 
  845.                        unsigned short, 
  846.                        char ISC_FAR *, 
  847.                        unsigned short, 
  848.                        unsigned short, 
  849.                        char ISC_FAR *,
  850.                        unsigned short, 
  851.                        char ISC_FAR *, 
  852.                        unsigned short, 
  853.                        unsigned short, 
  854.                        char ISC_FAR *);
  855.  
  856. ISC_STATUS  ISC_EXPORT isc_dsql_execute_immediate_m (ISC_STATUS ISC_FAR *, 
  857.                              isc_db_handle ISC_FAR *, 
  858.                              isc_tr_handle ISC_FAR *, 
  859.                              unsigned short, 
  860.                              char ISC_FAR *, 
  861.                              unsigned short, 
  862.                              unsigned short, 
  863.                              char ISC_FAR *,
  864.                              unsigned short,
  865.                              unsigned short,
  866.                              char ISC_FAR *);
  867.  
  868. ISC_STATUS  ISC_EXPORT isc_dsql_exec_immed3_m (ISC_STATUS ISC_FAR *, 
  869.                            isc_db_handle ISC_FAR *, 
  870.                            isc_tr_handle ISC_FAR *, 
  871.                            unsigned short, 
  872.                            char ISC_FAR *, 
  873.                            unsigned short, 
  874.                            unsigned short, 
  875.                            char ISC_FAR *,
  876.                            unsigned short,
  877.                            unsigned short,
  878.                            char ISC_FAR *,
  879.                            unsigned short, 
  880.                            char ISC_FAR *,
  881.                            unsigned short,
  882.                            unsigned short,
  883.                            char ISC_FAR *);
  884.  
  885. ISC_STATUS  ISC_EXPORT isc_dsql_fetch_m (ISC_STATUS ISC_FAR *, 
  886.                      isc_stmt_handle ISC_FAR *, 
  887.                      unsigned short, 
  888.                      char ISC_FAR *, 
  889.                      unsigned short, 
  890.                      unsigned short, 
  891.                      char ISC_FAR *);
  892.  
  893. ISC_STATUS  ISC_EXPORT isc_dsql_insert_m (ISC_STATUS ISC_FAR *, 
  894.                       isc_stmt_handle ISC_FAR *, 
  895.                       unsigned short, 
  896.                       char ISC_FAR *, 
  897.                       unsigned short, 
  898.                       unsigned short, 
  899.                       char ISC_FAR *);
  900.  
  901. ISC_STATUS  ISC_EXPORT isc_dsql_prepare_m (ISC_STATUS ISC_FAR *, 
  902.                        isc_tr_handle ISC_FAR *,
  903.                         isc_stmt_handle ISC_FAR *, 
  904.                        unsigned short,  
  905.                        char ISC_FAR *, 
  906.                        unsigned short,
  907.                        unsigned short, 
  908.                          char ISC_FAR *, 
  909.                         unsigned short,
  910.                        char ISC_FAR *);
  911.  
  912. ISC_STATUS  ISC_EXPORT isc_dsql_release (ISC_STATUS ISC_FAR *, 
  913.                      char ISC_FAR *);
  914.  
  915. ISC_STATUS  ISC_EXPORT isc_embed_dsql_close (ISC_STATUS ISC_FAR *, 
  916.                          char ISC_FAR *);
  917.  
  918. ISC_STATUS  ISC_EXPORT isc_embed_dsql_declare (ISC_STATUS ISC_FAR *, 
  919.                           char ISC_FAR *, 
  920.                           char ISC_FAR *);
  921.  
  922. ISC_STATUS  ISC_EXPORT isc_embed_dsql_describe (ISC_STATUS ISC_FAR *, 
  923.                         char ISC_FAR *, 
  924.                         unsigned short, 
  925.                         XSQLDA ISC_FAR *);
  926.  
  927. ISC_STATUS  ISC_EXPORT isc_embed_dsql_describe_bind (ISC_STATUS ISC_FAR *, 
  928.                              char ISC_FAR *, 
  929.                              unsigned short, 
  930.                              XSQLDA ISC_FAR *);
  931.  
  932. ISC_STATUS  ISC_EXPORT isc_embed_dsql_execute (ISC_STATUS ISC_FAR *, 
  933.                            isc_tr_handle ISC_FAR *,
  934.                            char ISC_FAR *, 
  935.                            unsigned short, 
  936.                            XSQLDA ISC_FAR *);
  937.  
  938. ISC_STATUS  ISC_EXPORT isc_embed_dsql_execute2 (ISC_STATUS ISC_FAR *,
  939.                         isc_tr_handle ISC_FAR *,
  940.                         char ISC_FAR *,
  941.                         unsigned short,
  942.                         XSQLDA ISC_FAR *,
  943.                         XSQLDA ISC_FAR *);
  944.  
  945. ISC_STATUS  ISC_EXPORT isc_embed_dsql_execute_immed (ISC_STATUS ISC_FAR *, 
  946.                              isc_db_handle ISC_FAR *, 
  947.                              isc_tr_handle ISC_FAR *, 
  948.                              unsigned short, 
  949.                              char ISC_FAR *,     
  950.                              unsigned short, 
  951.                              XSQLDA ISC_FAR *);
  952.  
  953. ISC_STATUS  ISC_EXPORT isc_embed_dsql_fetch (ISC_STATUS ISC_FAR *, 
  954.                          char ISC_FAR *, 
  955.                          unsigned short, 
  956.                          XSQLDA ISC_FAR *);
  957.  
  958. ISC_STATUS  ISC_EXPORT isc_embed_dsql_open (ISC_STATUS ISC_FAR *, 
  959.                         isc_tr_handle ISC_FAR *, 
  960.                         char ISC_FAR *, 
  961.                         unsigned short, 
  962.                         XSQLDA ISC_FAR *);
  963.  
  964. ISC_STATUS  ISC_EXPORT isc_embed_dsql_open2 (ISC_STATUS ISC_FAR *, 
  965.                          isc_tr_handle ISC_FAR *, 
  966.                          char ISC_FAR *, 
  967.                          unsigned short, 
  968.                          XSQLDA ISC_FAR *,
  969.                          XSQLDA ISC_FAR *);
  970.  
  971. ISC_STATUS  ISC_EXPORT isc_embed_dsql_insert (ISC_STATUS ISC_FAR *, 
  972.                           char ISC_FAR *, 
  973.                           unsigned short, 
  974.                           XSQLDA ISC_FAR *);
  975.  
  976. ISC_STATUS  ISC_EXPORT isc_embed_dsql_prepare (ISC_STATUS ISC_FAR *, 
  977.                            isc_db_handle ISC_FAR *,
  978.                            isc_tr_handle ISC_FAR *, 
  979.                            char ISC_FAR *, 
  980.                            unsigned short, 
  981.                            char ISC_FAR *, 
  982.                            unsigned short, 
  983.                            XSQLDA ISC_FAR *);
  984.  
  985. ISC_STATUS  ISC_EXPORT isc_embed_dsql_release (ISC_STATUS ISC_FAR *, 
  986.                            char ISC_FAR *);
  987.  
  988. /******************************/
  989. /* Other Blob functions       */
  990. /******************************/
  991.  
  992. BSTREAM     ISC_FAR * ISC_EXPORT BLOB_open (isc_blob_handle,  
  993.                         char ISC_FAR *,  
  994.                         int);
  995.  
  996. int          ISC_EXPORT BLOB_put (char, 
  997.                  BSTREAM ISC_FAR *);
  998.  
  999. int          ISC_EXPORT BLOB_close (BSTREAM ISC_FAR *);
  1000.  
  1001. int          ISC_EXPORT BLOB_get (BSTREAM ISC_FAR *);
  1002.  
  1003. int         ISC_EXPORT BLOB_display (ISC_QUAD ISC_FAR *, 
  1004.                      isc_db_handle, 
  1005.                      isc_tr_handle,
  1006.                      char ISC_FAR *);
  1007.  
  1008. int         ISC_EXPORT BLOB_dump (ISC_QUAD ISC_FAR *, 
  1009.                   isc_db_handle, 
  1010.                   isc_tr_handle,
  1011.                   char ISC_FAR *);
  1012.  
  1013. int         ISC_EXPORT BLOB_edit (ISC_QUAD ISC_FAR *, 
  1014.                   isc_db_handle, 
  1015.                   isc_tr_handle,
  1016.                   char ISC_FAR *);
  1017.  
  1018. int         ISC_EXPORT BLOB_load (ISC_QUAD ISC_FAR *, 
  1019.                   isc_db_handle, 
  1020.                   isc_tr_handle,
  1021.                   char ISC_FAR *);
  1022.  
  1023. int         ISC_EXPORT BLOB_text_dump (ISC_QUAD ISC_FAR *, 
  1024.                   isc_db_handle, 
  1025.                   isc_tr_handle,
  1026.                   char ISC_FAR *);
  1027.  
  1028. int         ISC_EXPORT BLOB_text_load (ISC_QUAD ISC_FAR *, 
  1029.                   isc_db_handle, 
  1030.                   isc_tr_handle,
  1031.                   char ISC_FAR *);
  1032.  
  1033. BSTREAM     ISC_FAR * ISC_EXPORT Bopen (ISC_QUAD ISC_FAR *, 
  1034.                            isc_db_handle, 
  1035.                            isc_tr_handle,  
  1036.                            char ISC_FAR *);
  1037.  
  1038. BSTREAM     ISC_FAR * ISC_EXPORT Bopen2 (ISC_QUAD ISC_FAR *, 
  1039.                      isc_db_handle,  
  1040.                      isc_tr_handle,  
  1041.                      char ISC_FAR *,
  1042.                      unsigned short);
  1043.  
  1044. /******************************/
  1045. /* Other Misc functions       */
  1046. /******************************/
  1047.  
  1048. ISC_LONG    ISC_EXPORT isc_ftof (char ISC_FAR *, 
  1049.                  unsigned short, 
  1050.                  char ISC_FAR *, 
  1051.                  unsigned short);
  1052.  
  1053. ISC_STATUS  ISC_EXPORT isc_print_blr (char ISC_FAR *, 
  1054.                       isc_callback, 
  1055.                       void ISC_FAR *, 
  1056.                       short);
  1057.  
  1058. void        ISC_EXPORT isc_set_debug (int);
  1059.  
  1060. void        ISC_EXPORT isc_qtoq (ISC_QUAD ISC_FAR *, 
  1061.                  ISC_QUAD ISC_FAR *);
  1062.  
  1063. void        ISC_EXPORT isc_vtof (char ISC_FAR *, 
  1064.                  char ISC_FAR *,
  1065.                  unsigned short);
  1066.  
  1067. void        ISC_EXPORT isc_vtov (char ISC_FAR *, 
  1068.                  char ISC_FAR *, 
  1069.                  short);
  1070.  
  1071. int         ISC_EXPORT isc_version (isc_db_handle ISC_FAR *, 
  1072.                     isc_callback, 
  1073.                     void ISC_FAR *);
  1074.  
  1075. ISC_LONG    ISC_EXPORT isc_reset_fpe (unsigned short);
  1076.  
  1077. /*****************************************/
  1078. /* Service manager functions             */
  1079. /*****************************************/
  1080.  
  1081. #define ADD_SPB_LENGTH(p, length)    {*(p)++ = (length); \
  1082.                          *(p)++ = (length) >> 8;}
  1083.  
  1084. #define ADD_SPB_NUMERIC(p, data)    {*(p)++ = (data); \
  1085.                          *(p)++ = (data) >> 8; \
  1086.                      *(p)++ = (data) >> 16; \
  1087.                      *(p)++ = (data) >> 24;}
  1088.  
  1089. ISC_STATUS  ISC_EXPORT isc_service_attach (ISC_STATUS ISC_FAR *, 
  1090.                        unsigned short, 
  1091.                        char ISC_FAR *,
  1092.                        isc_svc_handle ISC_FAR *, 
  1093.                        unsigned short, 
  1094.                        char ISC_FAR *);
  1095.  
  1096. ISC_STATUS  ISC_EXPORT isc_service_detach (ISC_STATUS ISC_FAR *, 
  1097.                        isc_svc_handle ISC_FAR *);
  1098.  
  1099. ISC_STATUS  ISC_EXPORT isc_service_query (ISC_STATUS ISC_FAR *, 
  1100.                       isc_svc_handle ISC_FAR *,
  1101.                                         isc_resv_handle ISC_FAR *,
  1102.                       unsigned short, 
  1103.                       char ISC_FAR *, 
  1104.                       unsigned short, 
  1105.                       char ISC_FAR *, 
  1106.                       unsigned short, 
  1107.                       char ISC_FAR *);
  1108.  
  1109. ISC_STATUS ISC_EXPORT isc_service_start (ISC_STATUS ISC_FAR *,
  1110.                          isc_svc_handle ISC_FAR *,
  1111.                                   isc_resv_handle ISC_FAR *,
  1112.                          unsigned short,
  1113.                          char ISC_FAR*);
  1114.  
  1115. /*******************************/
  1116. /* Forms functions             */
  1117. /*******************************/
  1118.  
  1119. ISC_STATUS  ISC_EXPORT isc_compile_map (ISC_STATUS ISC_FAR *, 
  1120.                     isc_form_handle ISC_FAR *,
  1121.                     isc_req_handle ISC_FAR *, 
  1122.                     short ISC_FAR *, 
  1123.                     char ISC_FAR *);
  1124.  
  1125. ISC_STATUS  ISC_EXPORT isc_compile_menu (ISC_STATUS ISC_FAR *, 
  1126.                      isc_form_handle ISC_FAR *,
  1127.                      isc_req_handle ISC_FAR *, 
  1128.                      short ISC_FAR *, 
  1129.                       char ISC_FAR *);
  1130.  
  1131. ISC_STATUS  ISC_EXPORT isc_compile_sub_map (ISC_STATUS ISC_FAR *, 
  1132.                         isc_win_handle ISC_FAR *,
  1133.                         isc_req_handle ISC_FAR *, 
  1134.                         short ISC_FAR *, 
  1135.                         char ISC_FAR *);
  1136.  
  1137. ISC_STATUS  ISC_EXPORT isc_create_window (ISC_STATUS ISC_FAR *, 
  1138.                       isc_win_handle ISC_FAR *, 
  1139.                       short ISC_FAR *, 
  1140.                       char ISC_FAR *, 
  1141.                       short ISC_FAR *, 
  1142.                       short ISC_FAR *);
  1143.  
  1144. ISC_STATUS  ISC_EXPORT isc_delete_window (ISC_STATUS ISC_FAR *, 
  1145.                       isc_win_handle ISC_FAR *);
  1146.  
  1147. ISC_STATUS  ISC_EXPORT isc_drive_form (ISC_STATUS ISC_FAR *, 
  1148.                        isc_db_handle ISC_FAR *, 
  1149.                        isc_tr_handle ISC_FAR *, 
  1150.                        isc_win_handle ISC_FAR *, 
  1151.                        isc_req_handle ISC_FAR *, 
  1152.                        unsigned char ISC_FAR *, 
  1153.                        unsigned char ISC_FAR *);
  1154.  
  1155. ISC_STATUS  ISC_EXPORT isc_drive_menu (ISC_STATUS ISC_FAR *, 
  1156.                        isc_win_handle ISC_FAR *, 
  1157.                        isc_req_handle ISC_FAR *, 
  1158.                        short ISC_FAR *, 
  1159.                        char ISC_FAR *, 
  1160.                        short ISC_FAR *, 
  1161.                        char ISC_FAR *,
  1162.                        short ISC_FAR *, 
  1163.                        short ISC_FAR *, 
  1164.                        char ISC_FAR *, 
  1165.                        ISC_LONG ISC_FAR *);
  1166.  
  1167. ISC_STATUS  ISC_EXPORT isc_form_delete (ISC_STATUS ISC_FAR *, 
  1168.                     isc_form_handle ISC_FAR *);
  1169.  
  1170. ISC_STATUS  ISC_EXPORT isc_form_fetch (ISC_STATUS ISC_FAR *, 
  1171.                        isc_db_handle ISC_FAR *, 
  1172.                        isc_tr_handle ISC_FAR *, 
  1173.                        isc_req_handle ISC_FAR *, 
  1174.                        unsigned char ISC_FAR *);
  1175.  
  1176. ISC_STATUS  ISC_EXPORT isc_form_insert (ISC_STATUS ISC_FAR *, 
  1177.                     isc_db_handle ISC_FAR *, 
  1178.                     isc_tr_handle ISC_FAR *, 
  1179.                     isc_req_handle ISC_FAR *, 
  1180.                     unsigned char ISC_FAR *);
  1181.  
  1182. ISC_STATUS  ISC_EXPORT isc_get_entree (ISC_STATUS ISC_FAR *, 
  1183.                        isc_req_handle ISC_FAR *, 
  1184.                        short ISC_FAR *, 
  1185.                        char ISC_FAR *, 
  1186.                        ISC_LONG ISC_FAR *, 
  1187.                        short ISC_FAR *);
  1188.  
  1189. ISC_STATUS  ISC_EXPORT isc_initialize_menu (ISC_STATUS ISC_FAR *, 
  1190.                         isc_req_handle ISC_FAR *);
  1191.  
  1192. ISC_STATUS  ISC_EXPORT isc_menu (ISC_STATUS ISC_FAR *, 
  1193.                  isc_win_handle ISC_FAR *, 
  1194.                  isc_req_handle ISC_FAR *, 
  1195.                   short ISC_FAR *, 
  1196.                  char ISC_FAR *);
  1197.  
  1198. ISC_STATUS  ISC_EXPORT isc_load_form (ISC_STATUS ISC_FAR *, 
  1199.                       isc_db_handle ISC_FAR *, 
  1200.                       isc_tr_handle ISC_FAR *, 
  1201.                       isc_form_handle ISC_FAR *, 
  1202.                       short ISC_FAR *, 
  1203.                       char ISC_FAR *);
  1204.                                                                 
  1205. ISC_STATUS  ISC_EXPORT isc_pop_window (ISC_STATUS ISC_FAR *, 
  1206.                        isc_win_handle ISC_FAR *);
  1207.  
  1208. ISC_STATUS  ISC_EXPORT isc_put_entree (ISC_STATUS ISC_FAR *, 
  1209.                        isc_req_handle ISC_FAR *, 
  1210.                        short ISC_FAR *, 
  1211.                        char ISC_FAR *, 
  1212.                        ISC_LONG ISC_FAR *);
  1213.  
  1214. ISC_STATUS  ISC_EXPORT isc_reset_form (ISC_STATUS ISC_FAR *, 
  1215.                        isc_req_handle ISC_FAR *);
  1216.  
  1217. ISC_STATUS  ISC_EXPORT isc_suspend_window (ISC_STATUS ISC_FAR *, 
  1218.                        isc_win_handle ISC_FAR *);
  1219.  
  1220. #ifdef __cplusplus
  1221. };
  1222. #endif
  1223.  
  1224. #else                     /* __cplusplus || __STDC__ */
  1225.  
  1226. ISC_STATUS  ISC_EXPORT isc_attach_database();
  1227. ISC_STATUS  ISC_EXPORT isc_array_gen_sdl();
  1228. ISC_STATUS  ISC_EXPORT isc_array_get_slice();
  1229. ISC_STATUS  ISC_EXPORT isc_array_lookup_bounds();
  1230. ISC_STATUS  ISC_EXPORT isc_array_lookup_desc();
  1231. ISC_STATUS  ISC_EXPORT isc_array_set_desc();
  1232. ISC_STATUS  ISC_EXPORT isc_array_put_slice();
  1233. ISC_STATUS  ISC_EXPORT isc_blob_gen_bpb();
  1234. ISC_STATUS  ISC_EXPORT isc_blob_info();
  1235. ISC_STATUS  ISC_EXPORT isc_blob_lookup_desc();
  1236. ISC_STATUS  ISC_EXPORT isc_blob_set_desc();
  1237. ISC_STATUS  ISC_EXPORT isc_cancel_blob();
  1238. ISC_STATUS  ISC_EXPORT isc_cancel_events();
  1239. ISC_STATUS  ISC_EXPORT isc_close_blob();
  1240. ISC_STATUS  ISC_EXPORT isc_commit_retaining();
  1241. ISC_STATUS  ISC_EXPORT isc_commit_transaction();
  1242. ISC_STATUS  ISC_EXPORT isc_compile_request();
  1243. ISC_STATUS  ISC_EXPORT isc_compile_request2();
  1244. ISC_STATUS  ISC_EXPORT isc_create_blob();
  1245. ISC_STATUS  ISC_EXPORT isc_create_blob2();
  1246. ISC_STATUS  ISC_EXPORT isc_create_database();
  1247. ISC_STATUS  ISC_EXPORT isc_database_info();
  1248. ISC_STATUS  ISC_EXPORT isc_ddl();
  1249. void        ISC_EXPORT isc_decode_date();
  1250. void        ISC_EXPORT isc_decode_sql_date();
  1251. void        ISC_EXPORT isc_decode_sql_time();
  1252. void        ISC_EXPORT isc_decode_timestamp();
  1253. ISC_STATUS  ISC_EXPORT isc_detach_database();
  1254. ISC_STATUS  ISC_EXPORT isc_drop_database();
  1255. void        ISC_EXPORT isc_encode_date();
  1256. void        ISC_EXPORT isc_encode_sql_date();
  1257. void        ISC_EXPORT isc_encode_sql_time();
  1258. void        ISC_EXPORT isc_encode_timestamp();
  1259. ISC_LONG    ISC_EXPORT isc_event_block();
  1260. void        ISC_EXPORT isc_event_counts();
  1261. void        ISC_EXPORT isc_expand_dpb();
  1262. int         ISC_EXPORT isc_modify_dpb();
  1263. ISC_LONG    ISC_EXPORT isc_free();
  1264. ISC_STATUS  ISC_EXPORT isc_get_segment();
  1265. ISC_STATUS  ISC_EXPORT isc_get_slice();
  1266. ISC_STATUS  ISC_EXPORT isc_interprete();
  1267. ISC_STATUS  ISC_EXPORT isc_open_blob();
  1268. ISC_STATUS  ISC_EXPORT isc_open_blob2();
  1269. ISC_STATUS  ISC_EXPORT isc_prepare_transaction();
  1270. ISC_STATUS  ISC_EXPORT isc_prepare_transaction2();
  1271. void        ISC_EXPORT isc_print_sqlerror();
  1272. ISC_STATUS  ISC_EXPORT isc_print_status();
  1273. ISC_STATUS  ISC_EXPORT isc_put_segment();
  1274. ISC_STATUS  ISC_EXPORT isc_put_slice();
  1275. ISC_STATUS  ISC_EXPORT isc_que_events();
  1276. ISC_STATUS  ISC_EXPORT isc_receive();
  1277. ISC_STATUS  ISC_EXPORT isc_reconnect_transaction();
  1278. ISC_STATUS  ISC_EXPORT isc_release_request();
  1279. ISC_STATUS  ISC_EXPORT isc_request_info();
  1280. ISC_LONG    ISC_EXPORT isc_reset_fpe ();
  1281. ISC_STATUS  ISC_EXPORT isc_rollback_transaction();
  1282. ISC_STATUS  ISC_EXPORT isc_rollback_retaining();
  1283. ISC_STATUS  ISC_EXPORT isc_seek_blob();
  1284. ISC_STATUS  ISC_EXPORT isc_send();
  1285. ISC_STATUS  ISC_EXPORT isc_service_attach();
  1286. ISC_STATUS  ISC_EXPORT isc_service_detach();
  1287. ISC_STATUS  ISC_EXPORT isc_service_query();
  1288. ISC_STATUS  ISC_EXPORT isc_service_start();
  1289. ISC_STATUS  ISC_EXPORT isc_start_and_send();
  1290. ISC_STATUS  ISC_EXPORT isc_start_multiple();
  1291. ISC_STATUS  ISC_EXPORT isc_start_request();
  1292. ISC_STATUS  ISC_EXPORT isc_start_transaction();
  1293. ISC_LONG    ISC_EXPORT isc_sqlcode();
  1294. ISC_STATUS  ISC_EXPORT isc_transaction_info();
  1295. ISC_STATUS  ISC_EXPORT isc_transact_request();
  1296. ISC_STATUS  ISC_EXPORT isc_unwind_request();
  1297. ISC_STATUS  ISC_EXPORT isc_wait_for_event();
  1298. ISC_LONG    ISC_EXPORT isc_ftof();
  1299. ISC_STATUS  ISC_EXPORT isc_print_blr();
  1300. void        ISC_EXPORT isc_set_debug();
  1301. void        ISC_EXPORT isc_qtoq();
  1302. ISC_LONG    ISC_EXPORT isc_vax_integer();
  1303. void        ISC_EXPORT isc_vtof();
  1304. void        ISC_EXPORT isc_vtov();
  1305. int         ISC_EXPORT isc_version();
  1306.  
  1307. #ifndef __STDC__
  1308.  
  1309. /******************/
  1310. /* Blob functions */
  1311. /******************/
  1312.  
  1313. BSTREAM   ISC_FAR * ISC_EXPORT Bopen();
  1314. BSTREAM   ISC_FAR * ISC_EXPORT BLOB_open();
  1315. BSTREAM   ISC_FAR * ISC_EXPORT Bopen2();
  1316. #endif                    /* __STDC__ */
  1317.  
  1318. #endif                                  /* __cplusplus || __STDC__ */
  1319.  
  1320. /***************************************************/
  1321. /* Actions to pass to the blob filter (ctl_source) */
  1322. /***************************************************/
  1323.  
  1324. #define isc_blob_filter_open             0
  1325. #define isc_blob_filter_get_segment      1
  1326. #define isc_blob_filter_close            2
  1327. #define isc_blob_filter_create           3
  1328. #define isc_blob_filter_put_segment      4
  1329. #define isc_blob_filter_alloc            5
  1330. #define isc_blob_filter_free             6
  1331. #define isc_blob_filter_seek             7
  1332.  
  1333. /*******************/
  1334. /* Blr definitions */
  1335. /*******************/
  1336.  
  1337. #ifndef _JRD_BLR_H_
  1338.  
  1339. #define blr_word(n) ((n) % 256), ((n) / 256)
  1340.  
  1341. #define blr_text                           14
  1342. #define blr_text2                          15
  1343. #define blr_short                          7
  1344. #define blr_long                           8
  1345. #define blr_quad                           9
  1346. #define blr_int64                          16
  1347. #define blr_float                          10
  1348. #define blr_double                         27
  1349. #define blr_d_float                        11
  1350. #define blr_timestamp                      35
  1351. #define blr_varying                        37
  1352. #define blr_varying2                       38
  1353. #define blr_blob                           261
  1354. #define blr_cstring                        40
  1355. #define blr_cstring2                       41    
  1356. #define blr_blob_id                        45
  1357. #define blr_sql_date                       12
  1358. #define blr_sql_time                       13
  1359.  
  1360. /* Historical alias for pre V6 applications */
  1361. #define blr_date                           blr_timestamp
  1362.  
  1363. #define blr_inner                          0
  1364. #define blr_left                           1
  1365. #define blr_right                          2
  1366. #define blr_full                           3
  1367.  
  1368. #define blr_gds_code                       0
  1369. #define blr_sql_code                       1
  1370. #define blr_exception                      2
  1371. #define blr_trigger_code                   3
  1372. #define blr_default_code                   4
  1373.  
  1374. #define blr_version4                       4
  1375. #define blr_version5                       5
  1376. #define blr_eoc                            76
  1377. #define blr_end                            255
  1378.  
  1379. #define blr_assignment                     1
  1380. #define blr_begin                          2
  1381. #define blr_dcl_variable                   3
  1382. #define blr_message                        4
  1383. #define blr_erase                          5
  1384. #define blr_fetch                          6
  1385. #define blr_for                            7
  1386. #define blr_if                             8
  1387. #define blr_loop                           9
  1388. #define blr_modify                         10
  1389. #define blr_handler                        11
  1390. #define blr_receive                        12
  1391. #define blr_select                         13
  1392. #define blr_send                           14
  1393. #define blr_store                          15
  1394. #define blr_label                          17
  1395. #define blr_leave                          18
  1396. #define blr_store2                         19
  1397. #define blr_post                           20
  1398.  
  1399. #define blr_literal                        21
  1400. #define blr_dbkey                          22
  1401. #define blr_field                          23
  1402. #define blr_fid                            24
  1403. #define blr_parameter                      25
  1404. #define blr_variable                       26
  1405. #define blr_average                        27
  1406. #define blr_count                          28
  1407. #define blr_maximum                        29
  1408. #define blr_minimum                        30
  1409. #define blr_total                          31
  1410. #define blr_add                            34
  1411. #define blr_subtract                       35
  1412. #define blr_multiply                       36
  1413. #define blr_divide                         37
  1414. #define blr_negate                         38
  1415. #define blr_concatenate                    39
  1416. #define blr_substring                      40
  1417. #define blr_parameter2                     41
  1418. #define blr_from                           42
  1419. #define blr_via                            43
  1420. #define blr_user_name                      44
  1421. #define blr_null                           45
  1422.  
  1423. #define blr_eql                            47
  1424. #define blr_neq                            48
  1425. #define blr_gtr                            49
  1426. #define blr_geq                            50
  1427. #define blr_lss                            51
  1428. #define blr_leq                            52
  1429. #define blr_containing                     53
  1430. #define blr_matching                       54
  1431. #define blr_starting                       55
  1432. #define blr_between                        56
  1433. #define blr_or                             57
  1434. #define blr_and                            58
  1435. #define blr_not                            59
  1436. #define blr_any                            60
  1437. #define blr_missing                        61
  1438. #define blr_unique                         62
  1439. #define blr_like                           63
  1440.  
  1441. #define blr_stream                         65
  1442. #define blr_set_index                      66
  1443. #define blr_rse                            67
  1444. #define blr_first                          68
  1445. #define blr_project                        69
  1446. #define blr_sort                           70
  1447. #define blr_boolean                        71
  1448. #define blr_ascending                      72
  1449. #define blr_descending                     73
  1450. #define blr_relation                       74
  1451. #define blr_rid                            75
  1452. #define blr_union                          76
  1453. #define blr_map                            77
  1454. #define blr_group_by                       78
  1455. #define blr_aggregate                      79
  1456. #define blr_join_type                      80
  1457.  
  1458. #define blr_agg_count                      83
  1459. #define blr_agg_max                        84
  1460. #define blr_agg_min                        85
  1461. #define blr_agg_total                      86
  1462. #define blr_agg_average                    87
  1463. #define blr_parameter3                     88
  1464. #define    blr_run_count                      118
  1465. #define    blr_run_max                        89
  1466. #define    blr_run_min                        90
  1467. #define    blr_run_total                      91
  1468. #define    blr_run_average                    92
  1469. #define blr_agg_count2                     93
  1470. #define blr_agg_count_distinct             94
  1471. #define blr_agg_total_distinct             95
  1472. #define blr_agg_average_distinct           96
  1473.  
  1474. #define blr_function                       100
  1475. #define blr_gen_id                         101
  1476. #define blr_prot_mask                      102
  1477. #define blr_upcase                         103
  1478. #define blr_lock_state                     104
  1479. #define blr_value_if                       105
  1480. #define blr_matching2                      106
  1481. #define blr_index                          107
  1482. #define blr_ansi_like                      108
  1483. #define blr_bookmark                       109
  1484. #define blr_crack                          110
  1485. #define blr_force_crack                    111
  1486. #define blr_seek                           112
  1487. #define blr_find                           113
  1488.  
  1489. #define blr_continue                       0
  1490. #define blr_forward                        1
  1491. #define blr_backward                       2
  1492. #define blr_bof_forward                    3
  1493. #define blr_eof_backward                   4
  1494.  
  1495. #define blr_lock_relation                  114
  1496. #define blr_lock_record                    115
  1497. #define blr_set_bookmark           116
  1498. #define blr_get_bookmark           117
  1499. #define blr_rs_stream                      119
  1500. #define blr_exec_proc                      120
  1501. #define blr_begin_range                    121
  1502. #define blr_end_range                      122
  1503. #define blr_delete_range                   123
  1504. #define blr_procedure                      124
  1505. #define blr_pid                            125
  1506. #define blr_exec_pid                       126
  1507. #define blr_singular                       127
  1508. #define blr_abort                          128
  1509. #define blr_block                          129
  1510. #define blr_error_handler                  130
  1511. #define blr_cast                           131
  1512. #define blr_release_lock                   132
  1513. #define blr_release_locks                  133
  1514. #define blr_start_savepoint                134
  1515. #define blr_end_savepoint                  135
  1516. #define blr_find_dbkey                     136
  1517. #define blr_range_relation                 137
  1518. #define blr_delete_ranges                  138
  1519.  
  1520. #define blr_plan                           139
  1521. #define blr_merge                          140
  1522. #define blr_join                           141
  1523. #define blr_sequential                     142
  1524. #define blr_navigational                   143
  1525. #define blr_indices                        144
  1526. #define blr_retrieve                       145
  1527.  
  1528. #define blr_relation2                      146
  1529. #define blr_rid2                           147
  1530. #define blr_reset_stream                   148
  1531. #define blr_release_bookmark               149
  1532. #define blr_set_generator                  150
  1533. #define blr_ansi_any               151   
  1534. #define blr_exists               152
  1535. #define blr_cardinality               153
  1536.  
  1537. #define blr_record_version           154        /* get tid of record */
  1538. #define blr_stall               155        /* fake server stall */
  1539. #define blr_seek_no_warn           156
  1540. #define blr_find_dbkey_version           157
  1541. #define blr_ansi_all               158   
  1542.  
  1543. #define blr_extract                        159
  1544.  
  1545. /* sub parameters for blr_extract */
  1546.  
  1547. #define blr_extract_year                   0
  1548. #define blr_extract_month                  1
  1549. #define blr_extract_day                       2
  1550. #define blr_extract_hour                   3
  1551. #define blr_extract_minute                 4
  1552. #define blr_extract_second                 5
  1553. #define blr_extract_weekday                6
  1554. #define blr_extract_yearday                7
  1555.  
  1556. #define blr_current_date                   160
  1557. #define blr_current_timestamp              161
  1558. #define blr_current_time                   162
  1559.  
  1560. /* These verbs were added in 6.0, primarily to support 64-bit integers */
  1561.  
  1562. #define blr_add2              163
  1563. #define blr_subtract2              164
  1564. #define blr_multiply2             165
  1565. #define blr_divide2              166
  1566. #define blr_agg_total2            167
  1567. #define blr_agg_total_distinct2   168
  1568. #define blr_agg_average2          169
  1569. #define blr_agg_average_distinct2 170
  1570. #define blr_average2          171
  1571. #define blr_gen_id2          172
  1572. #define blr_set_generator2        173
  1573. #endif                    /* _JRD_BLR_H_ */
  1574.  
  1575. /**********************************/
  1576. /* Database parameter block stuff */
  1577. /**********************************/
  1578.  
  1579. #define isc_dpb_version1                  1
  1580. #define isc_dpb_cdd_pathname              1
  1581. #define isc_dpb_allocation                2
  1582. #define isc_dpb_journal                   3
  1583. #define isc_dpb_page_size                 4
  1584. #define isc_dpb_num_buffers               5
  1585. #define isc_dpb_buffer_length             6
  1586. #define isc_dpb_debug                     7
  1587. #define isc_dpb_garbage_collect           8
  1588. #define isc_dpb_verify                    9
  1589. #define isc_dpb_sweep                     10
  1590. #define isc_dpb_enable_journal            11
  1591. #define isc_dpb_disable_journal           12
  1592. #define isc_dpb_dbkey_scope               13
  1593. #define isc_dpb_number_of_users           14
  1594. #define isc_dpb_trace                     15
  1595. #define isc_dpb_no_garbage_collect        16
  1596. #define isc_dpb_damaged                   17
  1597. #define isc_dpb_license                   18
  1598. #define isc_dpb_sys_user_name             19
  1599. #define isc_dpb_encrypt_key               20
  1600. #define isc_dpb_activate_shadow           21
  1601. #define isc_dpb_sweep_interval            22
  1602. #define isc_dpb_delete_shadow             23
  1603. #define isc_dpb_force_write               24
  1604. #define isc_dpb_begin_log                 25
  1605. #define isc_dpb_quit_log                  26
  1606. #define isc_dpb_no_reserve                27
  1607. #define isc_dpb_user_name                 28
  1608. #define isc_dpb_password                  29
  1609. #define isc_dpb_password_enc              30
  1610. #define isc_dpb_sys_user_name_enc         31
  1611. #define isc_dpb_interp                    32
  1612. #define isc_dpb_online_dump               33
  1613. #define isc_dpb_old_file_size             34
  1614. #define isc_dpb_old_num_files             35
  1615. #define isc_dpb_old_file                  36
  1616. #define isc_dpb_old_start_page            37
  1617. #define isc_dpb_old_start_seqno           38
  1618. #define isc_dpb_old_start_file            39
  1619. #define isc_dpb_drop_walfile              40
  1620. #define isc_dpb_old_dump_id               41
  1621. #define isc_dpb_wal_backup_dir            42
  1622. #define isc_dpb_wal_chkptlen              43
  1623. #define isc_dpb_wal_numbufs               44
  1624. #define isc_dpb_wal_bufsize               45
  1625. #define isc_dpb_wal_grp_cmt_wait          46
  1626. #define isc_dpb_lc_messages               47
  1627. #define isc_dpb_lc_ctype                  48
  1628. #define isc_dpb_cache_manager          49
  1629. #define isc_dpb_shutdown          50
  1630. #define isc_dpb_online              51
  1631. #define isc_dpb_shutdown_delay          52
  1632. #define isc_dpb_reserved          53
  1633. #define isc_dpb_overwrite          54
  1634. #define isc_dpb_sec_attach          55
  1635. #define isc_dpb_disable_wal          56
  1636. #define isc_dpb_connect_timeout           57
  1637. #define isc_dpb_dummy_packet_interval     58
  1638. #define isc_dpb_gbak_attach               59
  1639. #define isc_dpb_sql_role_name             60
  1640. #define isc_dpb_set_page_buffers          61
  1641. #define isc_dpb_working_directory         62
  1642. #define isc_dpb_sql_dialect               63
  1643. #define isc_dpb_set_db_readonly           64
  1644. #define isc_dpb_set_db_sql_dialect        65
  1645. #define isc_dpb_gfix_attach          66
  1646. #define isc_dpb_gstat_attach          67
  1647.  
  1648. /*********************************/
  1649. /* isc_dpb_verify specific flags */
  1650. /*********************************/
  1651.  
  1652. #define isc_dpb_pages                     1
  1653. #define isc_dpb_records                   2
  1654. #define isc_dpb_indices                   4
  1655. #define isc_dpb_transactions              8
  1656. #define isc_dpb_no_update                 16
  1657. #define isc_dpb_repair                    32
  1658. #define isc_dpb_ignore                    64
  1659.  
  1660. /***********************************/
  1661. /* isc_dpb_shutdown specific flags */
  1662. /***********************************/
  1663.  
  1664. #define isc_dpb_shut_cache               1
  1665. #define isc_dpb_shut_attachment          2
  1666. #define isc_dpb_shut_transaction         4
  1667. #define isc_dpb_shut_force               8
  1668.  
  1669. /**************************************/
  1670. /* Bit assignments in RDB$SYSTEM_FLAG */
  1671. /**************************************/
  1672.  
  1673. #define RDB_system                         1
  1674. #define RDB_id_assigned                    2
  1675.  
  1676. /*************************************/
  1677. /* Transaction parameter block stuff */
  1678. /*************************************/
  1679.  
  1680. #define isc_tpb_version1                  1
  1681. #define isc_tpb_version3                  3
  1682. #define isc_tpb_consistency               1
  1683. #define isc_tpb_concurrency               2
  1684. #define isc_tpb_shared                    3
  1685. #define isc_tpb_protected                 4
  1686. #define isc_tpb_exclusive                 5
  1687. #define isc_tpb_wait                      6
  1688. #define isc_tpb_nowait                    7
  1689. #define isc_tpb_read                      8
  1690. #define isc_tpb_write                     9
  1691. #define isc_tpb_lock_read                 10
  1692. #define isc_tpb_lock_write                11
  1693. #define isc_tpb_verb_time                 12
  1694. #define isc_tpb_commit_time               13
  1695. #define isc_tpb_ignore_limbo              14
  1696. #define isc_tpb_read_committed          15
  1697. #define isc_tpb_autocommit          16
  1698. #define isc_tpb_rec_version          17
  1699. #define isc_tpb_no_rec_version          18
  1700. #define isc_tpb_restart_requests      19
  1701. #define isc_tpb_no_auto_undo              20
  1702.  
  1703. /************************/
  1704. /* Blob Parameter Block */
  1705. /************************/
  1706.  
  1707. #define isc_bpb_version1                  1
  1708. #define isc_bpb_source_type               1
  1709. #define isc_bpb_target_type               2
  1710. #define isc_bpb_type                      3
  1711. #define isc_bpb_source_interp             4
  1712. #define isc_bpb_target_interp             5
  1713. #define isc_bpb_filter_parameter          6
  1714.  
  1715. #define isc_bpb_type_segmented            0
  1716. #define isc_bpb_type_stream               1
  1717.  
  1718. /*********************************/
  1719. /* Service parameter block stuff */
  1720. /*********************************/
  1721.  
  1722. #define isc_spb_version1                  1
  1723. #define isc_spb_current_version           2
  1724. #define isc_spb_version              isc_spb_current_version
  1725. #define isc_spb_user_name                 isc_dpb_user_name 
  1726. #define isc_spb_sys_user_name             isc_dpb_sys_user_name
  1727. #define isc_spb_sys_user_name_enc         isc_dpb_sys_user_name_enc
  1728. #define isc_spb_password                  isc_dpb_password
  1729. #define isc_spb_password_enc              isc_dpb_password_enc
  1730. #define isc_spb_command_line              105
  1731. #define isc_spb_dbname                    106
  1732. #define isc_spb_verbose                   107
  1733. #define isc_spb_options                   108
  1734.  
  1735. #define isc_spb_connect_timeout           isc_dpb_connect_timeout
  1736. #define isc_spb_dummy_packet_interval     isc_dpb_dummy_packet_interval
  1737. #define isc_spb_sql_role_name             isc_dpb_sql_role_name
  1738.  
  1739. /*********************************/
  1740. /* Information call declarations */
  1741. /*********************************/
  1742.  
  1743. /****************************/
  1744. /* Common, structural codes */
  1745. /****************************/
  1746.  
  1747. #define isc_info_end                      1
  1748. #define isc_info_truncated                2
  1749. #define isc_info_error                    3
  1750. #define isc_info_data_not_ready              4
  1751. #define isc_info_flag_end          127
  1752.  
  1753. /******************************/
  1754. /* Database information items */
  1755. /******************************/
  1756.  
  1757. #define isc_info_db_id                    4
  1758. #define isc_info_reads                    5
  1759. #define isc_info_writes                   6
  1760. #define isc_info_fetches                  7
  1761. #define isc_info_marks                    8
  1762. #define isc_info_implementation           11
  1763. #define isc_info_version                  12
  1764. #define isc_info_base_level               13
  1765. #define isc_info_page_size                14
  1766. #define isc_info_num_buffers              15
  1767. #define isc_info_limbo                    16
  1768. #define isc_info_current_memory           17
  1769. #define isc_info_max_memory               18
  1770. #define isc_info_window_turns             19
  1771. #define isc_info_license                  20
  1772. #define isc_info_allocation               21
  1773. #define isc_info_attachment_id            22
  1774. #define isc_info_read_seq_count           23
  1775. #define isc_info_read_idx_count           24
  1776. #define isc_info_insert_count             25
  1777. #define isc_info_update_count             26
  1778. #define isc_info_delete_count             27
  1779. #define isc_info_backout_count            28
  1780. #define isc_info_purge_count              29
  1781. #define isc_info_expunge_count            30
  1782. #define isc_info_sweep_interval           31
  1783. #define isc_info_ods_version              32
  1784. #define isc_info_ods_minor_version        33
  1785. #define isc_info_no_reserve               34
  1786. #define isc_info_logfile                  35
  1787. #define isc_info_cur_logfile_name         36
  1788. #define isc_info_cur_log_part_offset      37
  1789. #define isc_info_num_wal_buffers          38
  1790. #define isc_info_wal_buffer_size          39
  1791. #define isc_info_wal_ckpt_length          40
  1792. #define isc_info_wal_cur_ckpt_interval    41
  1793. #define isc_info_wal_prv_ckpt_fname       42
  1794. #define isc_info_wal_prv_ckpt_poffset     43
  1795. #define isc_info_wal_recv_ckpt_fname      44
  1796. #define isc_info_wal_recv_ckpt_poffset    45
  1797. #define isc_info_wal_grpc_wait_usecs      47
  1798. #define isc_info_wal_num_io               48
  1799. #define isc_info_wal_avg_io_size          49
  1800. #define isc_info_wal_num_commits          50
  1801. #define isc_info_wal_avg_grpc_size        51
  1802. #define isc_info_forced_writes          52
  1803. #define isc_info_user_names          53
  1804. #define isc_info_page_errors          54
  1805. #define isc_info_record_errors          55
  1806. #define isc_info_bpage_errors          56
  1807. #define isc_info_dpage_errors            57
  1808. #define isc_info_ipage_errors            58
  1809. #define isc_info_ppage_errors          59
  1810. #define isc_info_tpage_errors            60
  1811. #define isc_info_set_page_buffers         61
  1812. #define isc_info_db_sql_dialect           62
  1813. #define isc_info_db_read_only             63
  1814. #define isc_info_db_size_in_pages      64
  1815.  
  1816. /**************************************/
  1817. /* Database information return values */
  1818. /**************************************/
  1819.  
  1820. #define isc_info_db_impl_rdb_vms          1
  1821. #define isc_info_db_impl_rdb_eln          2
  1822. #define isc_info_db_impl_rdb_eln_dev      3
  1823. #define isc_info_db_impl_rdb_vms_y        4
  1824. #define isc_info_db_impl_rdb_eln_y        5
  1825. #define isc_info_db_impl_jri              6
  1826. #define isc_info_db_impl_jsv              7
  1827. #define isc_info_db_impl_isc_a            25
  1828. #define isc_info_db_impl_isc_u            26
  1829. #define isc_info_db_impl_isc_v            27
  1830. #define isc_info_db_impl_isc_s            28
  1831. #define isc_info_db_impl_isc_apl_68K      25
  1832. #define isc_info_db_impl_isc_vax_ultr     26
  1833. #define isc_info_db_impl_isc_vms          27
  1834. #define isc_info_db_impl_isc_sun_68k      28
  1835. #define isc_info_db_impl_isc_os2          29
  1836. #define isc_info_db_impl_isc_sun4         30
  1837. #define isc_info_db_impl_isc_hp_ux        31
  1838. #define isc_info_db_impl_isc_sun_386i     32
  1839. #define isc_info_db_impl_isc_vms_orcl     33
  1840. #define isc_info_db_impl_isc_mac_aux      34
  1841. #define isc_info_db_impl_isc_rt_aix       35
  1842. #define isc_info_db_impl_isc_mips_ult     36
  1843. #define isc_info_db_impl_isc_xenix        37
  1844. #define isc_info_db_impl_isc_dg           38
  1845. #define isc_info_db_impl_isc_hp_mpexl     39
  1846. #define isc_info_db_impl_isc_hp_ux68K     40
  1847. #define isc_info_db_impl_isc_sgi          41
  1848. #define isc_info_db_impl_isc_sco_unix     42
  1849. #define isc_info_db_impl_isc_cray         43
  1850. #define isc_info_db_impl_isc_imp          44
  1851. #define isc_info_db_impl_isc_delta        45
  1852. #define isc_info_db_impl_isc_next         46
  1853. #define isc_info_db_impl_isc_dos          47
  1854. #define isc_info_db_impl_isc_winnt        48
  1855. #define isc_info_db_impl_isc_epson        49
  1856.  
  1857. #define isc_info_db_class_access          1
  1858. #define isc_info_db_class_y_valve         2
  1859. #define isc_info_db_class_rem_int         3
  1860. #define isc_info_db_class_rem_srvr        4
  1861. #define isc_info_db_class_pipe_int        7
  1862. #define isc_info_db_class_pipe_srvr       8
  1863. #define isc_info_db_class_sam_int         9
  1864. #define isc_info_db_class_sam_srvr        10
  1865. #define isc_info_db_class_gateway         11
  1866. #define isc_info_db_class_cache           12
  1867.  
  1868. /*****************************/
  1869. /* Request information items */
  1870. /*****************************/
  1871.  
  1872. #define isc_info_number_messages          4
  1873. #define isc_info_max_message              5
  1874. #define isc_info_max_send                 6
  1875. #define isc_info_max_receive              7
  1876. #define isc_info_state                    8
  1877. #define isc_info_message_number           9
  1878. #define isc_info_message_size             10
  1879. #define isc_info_request_cost             11
  1880. #define isc_info_access_path              12
  1881. #define isc_info_req_select_count         13
  1882. #define isc_info_req_insert_count         14
  1883. #define isc_info_req_update_count         15
  1884. #define isc_info_req_delete_count         16
  1885.  
  1886. /*********************/
  1887. /* Access path items */
  1888. /*********************/
  1889.  
  1890. #define isc_info_rsb_end           0
  1891. #define isc_info_rsb_begin           1
  1892. #define isc_info_rsb_type           2
  1893. #define isc_info_rsb_relation           3
  1894. #define isc_info_rsb_plan                  4
  1895.  
  1896. /*************/
  1897. /* Rsb types */
  1898. /*************/
  1899.  
  1900. #define isc_info_rsb_unknown           1
  1901. #define isc_info_rsb_indexed           2
  1902. #define isc_info_rsb_navigate           3
  1903. #define isc_info_rsb_sequential            4
  1904. #define isc_info_rsb_cross           5
  1905. #define isc_info_rsb_sort           6
  1906. #define isc_info_rsb_first           7
  1907. #define isc_info_rsb_boolean           8
  1908. #define isc_info_rsb_union           9
  1909. #define isc_info_rsb_aggregate          10
  1910. #define isc_info_rsb_merge          11
  1911. #define isc_info_rsb_ext_sequential      12
  1912. #define isc_info_rsb_ext_indexed      13
  1913. #define isc_info_rsb_ext_dbkey          14
  1914. #define isc_info_rsb_left_cross           15
  1915. #define isc_info_rsb_select          16
  1916. #define isc_info_rsb_sql_join          17
  1917. #define isc_info_rsb_simulate          18
  1918. #define isc_info_rsb_sim_cross          19
  1919. #define isc_info_rsb_once          20
  1920. #define isc_info_rsb_procedure          21
  1921.  
  1922. /**********************/
  1923. /* Bitmap expressions */
  1924. /**********************/
  1925.  
  1926. #define isc_info_rsb_and        1
  1927. #define isc_info_rsb_or            2
  1928. #define isc_info_rsb_dbkey        3
  1929. #define isc_info_rsb_index        4
  1930.  
  1931. #define isc_info_req_active               2
  1932. #define isc_info_req_inactive             3
  1933. #define isc_info_req_send                 4
  1934. #define isc_info_req_receive              5
  1935. #define isc_info_req_select               6
  1936. #define isc_info_req_sql_stall          7
  1937.  
  1938. /**************************/
  1939. /* Blob information items */
  1940. /**************************/
  1941.  
  1942. #define isc_info_blob_num_segments        4
  1943. #define isc_info_blob_max_segment         5
  1944. #define isc_info_blob_total_length        6
  1945. #define isc_info_blob_type                7
  1946.  
  1947. /*********************************/
  1948. /* Transaction information items */
  1949. /*********************************/
  1950.  
  1951. #define isc_info_tra_id                   4
  1952.  
  1953. /*****************************
  1954.  * Service action items      *
  1955.  *****************************/
  1956.  
  1957. #define isc_action_svc_backup          1 /* Starts database backup process on the server */ 
  1958. #define isc_action_svc_restore         2 /* Starts database restore process on the server */ 
  1959. #define isc_action_svc_repair          3 /* Starts database repair process on the server */ 
  1960. #define isc_action_svc_add_user        4 /* Adds a new user to the security database */ 
  1961. #define isc_action_svc_delete_user     5 /* Deletes a user record from the security database */ 
  1962. #define isc_action_svc_modify_user     6 /* Modifies a user record in the security database */
  1963. #define isc_action_svc_display_user    7 /* Displays a user record from the security database */
  1964. #define isc_action_svc_properties      8 /* Sets database properties */ 
  1965. #define isc_action_svc_add_license     9 /* Adds a license to the license file */ 
  1966. #define isc_action_svc_remove_license 10 /* Removes a license from the license file */ 
  1967. #define isc_action_svc_db_stats          11 /* Retrieves database statistics */
  1968. #define isc_action_svc_get_ib_log     12 /* Retrieves the InterBase log file from the server */
  1969.  
  1970. /*****************************
  1971.  * Service information items *
  1972.  *****************************/
  1973.  
  1974. #define isc_info_svc_svr_db_info      50 /* Retrieves the number of attachments and databases */ 
  1975. #define isc_info_svc_get_license      51 /* Retrieves all license keys and IDs from the license file */
  1976. #define isc_info_svc_get_license_mask 52 /* Retrieves a bitmask representing licensed options on the server */ 
  1977. #define isc_info_svc_get_config       53 /* Retrieves the parameters and values for IB_CONFIG */ 
  1978. #define isc_info_svc_version          54 /* Retrieves the version of the services manager */ 
  1979. #define isc_info_svc_server_version   55 /* Retrieves the version of the InterBase server */ 
  1980. #define isc_info_svc_implementation   56 /* Retrieves the implementation of the InterBase server */ 
  1981. #define isc_info_svc_capabilities     57 /* Retrieves a bitmask representing the server's capabilities */ 
  1982. #define isc_info_svc_user_dbpath      58 /* Retrieves the path to the security database in use by the server */ 
  1983. #define isc_info_svc_get_env          59 /* Retrieves the setting of $INTERBASE */
  1984. #define isc_info_svc_get_env_lock     60 /* Retrieves the setting of $INTERBASE_LCK */
  1985. #define isc_info_svc_get_env_msg      61 /* Retrieves the setting of $INTERBASE_MSG */
  1986. #define isc_info_svc_line             62 /* Retrieves 1 line of service output per call */
  1987. #define isc_info_svc_to_eof           63 /* Retrieves as much of the server output as will fit in the supplied buffer */
  1988. #define isc_info_svc_timeout          64 /* Sets / signifies a timeout value for reading service information */
  1989. #define isc_info_svc_get_licensed_users 65 /* Retrieves the number of users licensed for accessing the server */
  1990. #define isc_info_svc_limbo_trans    66 /* Retrieve the limbo transactions */
  1991. #define isc_info_svc_running        67 /* Checks to see if a service is running on an attachment */
  1992. #define isc_info_svc_get_users        68 /* Returns the user information from isc_action_svc_display_users */
  1993.  
  1994. /******************************************************
  1995.  * Parameters for isc_action_{add|delete|modify)_user *
  1996.  ******************************************************/
  1997.  
  1998. #define isc_spb_sec_userid            5
  1999. #define isc_spb_sec_groupid           6
  2000. #define isc_spb_sec_username          7
  2001. #define isc_spb_sec_password          8
  2002. #define isc_spb_sec_groupname         9
  2003. #define isc_spb_sec_firstname         10
  2004. #define isc_spb_sec_middlename        11
  2005. #define isc_spb_sec_lastname          12
  2006.  
  2007. /*******************************************************
  2008.  * Parameters for isc_action_svc_(add|remove)_license, *
  2009.  * isc_info_svc_get_license                            *
  2010.  *******************************************************/
  2011.  
  2012. #define isc_spb_lic_key               5
  2013. #define isc_spb_lic_id                6
  2014. #define isc_spb_lic_desc              7
  2015.  
  2016.  
  2017. /*****************************************
  2018.  * Parameters for isc_action_svc_backup  *
  2019.  *****************************************/
  2020.  
  2021. #define isc_spb_bkp_file                 5 
  2022. #define isc_spb_bkp_factor               6
  2023. #define isc_spb_bkp_length               7
  2024. #define isc_spb_bkp_ignore_checksums     0x01
  2025. #define isc_spb_bkp_ignore_limbo         0x02
  2026. #define isc_spb_bkp_metadata_only        0x04
  2027. #define isc_spb_bkp_no_garbage_collect   0x08
  2028. #define isc_spb_bkp_old_descriptions     0x10
  2029. #define isc_spb_bkp_non_transportable    0x20
  2030. #define isc_spb_bkp_convert              0x40
  2031. #define isc_spb_bkp_expand         0x80
  2032.  
  2033. /********************************************
  2034.  * Parameters for isc_action_svc_properties *
  2035.  ********************************************/
  2036.  
  2037. #define isc_spb_prp_page_buffers        5
  2038. #define isc_spb_prp_sweep_interval        6
  2039. #define isc_spb_prp_shutdown_db            7
  2040. #define isc_spb_prp_deny_new_attachments    9
  2041. #define isc_spb_prp_deny_new_transactions    10
  2042. #define isc_spb_prp_reserve_space        11
  2043. #define isc_spb_prp_write_mode            12
  2044. #define isc_spb_prp_access_mode            13
  2045. #define isc_spb_prp_set_sql_dialect        14
  2046. #define isc_spb_prp_activate            0x0100
  2047. #define isc_spb_prp_db_online            0x0200
  2048.  
  2049. /********************************************
  2050.  * Parameters for isc_spb_prp_reserve_space *
  2051.  ********************************************/
  2052.  
  2053. #define isc_spb_prp_res_use_full    35
  2054. #define isc_spb_prp_res            36
  2055.  
  2056. /******************************************
  2057.  * Parameters for isc_spb_prp_write_mode  *
  2058.  ******************************************/
  2059.  
  2060. #define isc_spb_prp_wm_async        37
  2061. #define isc_spb_prp_wm_sync        38
  2062.  
  2063. /******************************************
  2064.  * Parameters for isc_spb_prp_access_mode *
  2065.  ******************************************/
  2066.  
  2067. #define isc_spb_prp_am_readonly        39
  2068. #define isc_spb_prp_am_readwrite    40
  2069.  
  2070. /*****************************************
  2071.  * Parameters for isc_action_svc_repair  *
  2072.  *****************************************/
  2073.  
  2074. #define isc_spb_rpr_commit_trans        15
  2075. #define isc_spb_rpr_rollback_trans        34
  2076. #define isc_spb_rpr_recover_two_phase        17
  2077. #define isc_spb_tra_id                         18
  2078. #define isc_spb_single_tra_id            19
  2079. #define isc_spb_multi_tra_id            20
  2080. #define isc_spb_tra_state            21
  2081. #define isc_spb_tra_state_limbo            22
  2082. #define isc_spb_tra_state_commit        23
  2083. #define isc_spb_tra_state_rollback        24
  2084. #define isc_spb_tra_state_unknown        25
  2085. #define isc_spb_tra_host_site            26
  2086. #define isc_spb_tra_remote_site            27
  2087. #define isc_spb_tra_db_path            28
  2088. #define isc_spb_tra_advise            29
  2089. #define isc_spb_tra_advise_commit        30
  2090. #define isc_spb_tra_advise_rollback        31
  2091. #define isc_spb_tra_advise_unknown        33
  2092.  
  2093. #define isc_spb_rpr_validate_db            0x01
  2094. #define isc_spb_rpr_sweep_db            0x02
  2095. #define isc_spb_rpr_mend_db            0x04
  2096. #define isc_spb_rpr_list_limbo_trans        0x08
  2097. #define isc_spb_rpr_check_db            0x10
  2098. #define isc_spb_rpr_ignore_checksum        0x20
  2099. #define isc_spb_rpr_kill_shadows        0x40
  2100. #define isc_spb_rpr_full            0x80
  2101.  
  2102. /*****************************************
  2103.  * Parameters for isc_action_svc_restore *
  2104.  *****************************************/
  2105.  
  2106. #define isc_spb_res_buffers            9
  2107. #define isc_spb_res_page_size            10 
  2108. #define isc_spb_res_length            11
  2109. #define isc_spb_res_access_mode            12
  2110. #define isc_spb_res_deactivate_idx        0x0100
  2111. #define isc_spb_res_no_shadow            0x0200
  2112. #define isc_spb_res_no_validity            0x0400
  2113. #define isc_spb_res_one_at_a_time        0x0800
  2114. #define isc_spb_res_replace            0x1000
  2115. #define isc_spb_res_create            0x2000
  2116. #define isc_spb_res_use_all_space        0x4000
  2117.  
  2118. /******************************************
  2119.  * Parameters for isc_spb_res_access_mode  *
  2120.  ******************************************/
  2121.  
  2122. #define isc_spb_res_am_readonly            isc_spb_prp_am_readonly
  2123. #define isc_spb_res_am_readwrite        isc_spb_prp_am_readwrite
  2124.  
  2125. /*******************************************
  2126.  * Parameters for isc_info_svc_svr_db_info *
  2127.  *******************************************/
  2128.  
  2129. #define isc_spb_num_att               5 
  2130. #define isc_spb_num_db                6
  2131.  
  2132. /*****************************************
  2133.  * Parameters for isc_info_svc_db_stats  *
  2134.  *****************************************/
  2135.  
  2136. #define isc_spb_sts_data_pages        0x01
  2137. #define isc_spb_sts_db_log        0x02
  2138. #define isc_spb_sts_hdr_pages        0x04
  2139. #define isc_spb_sts_idx_pages        0x08
  2140. #define isc_spb_sts_sys_relations    0x10
  2141.  
  2142. /*************************/
  2143. /* SQL information items */
  2144. /*************************/
  2145.  
  2146. #define isc_info_sql_select               4
  2147. #define isc_info_sql_bind                 5
  2148. #define isc_info_sql_num_variables        6
  2149. #define isc_info_sql_describe_vars        7
  2150. #define isc_info_sql_describe_end         8
  2151. #define isc_info_sql_sqlda_seq            9
  2152. #define isc_info_sql_message_seq          10
  2153. #define isc_info_sql_type                 11
  2154. #define isc_info_sql_sub_type             12
  2155. #define isc_info_sql_scale                13
  2156. #define isc_info_sql_length               14
  2157. #define isc_info_sql_null_ind             15
  2158. #define isc_info_sql_field                16
  2159. #define isc_info_sql_relation             17
  2160. #define isc_info_sql_owner                18
  2161. #define isc_info_sql_alias                19
  2162. #define isc_info_sql_sqlda_start          20
  2163. #define isc_info_sql_stmt_type            21
  2164. #define isc_info_sql_get_plan             22
  2165. #define isc_info_sql_records          23
  2166. #define isc_info_sql_batch_fetch      24
  2167.  
  2168. /*********************************/
  2169. /* SQL information return values */
  2170. /*********************************/
  2171.  
  2172. #define isc_info_sql_stmt_select          1
  2173. #define isc_info_sql_stmt_insert          2
  2174. #define isc_info_sql_stmt_update          3
  2175. #define isc_info_sql_stmt_delete          4
  2176. #define isc_info_sql_stmt_ddl             5
  2177. #define isc_info_sql_stmt_get_segment     6
  2178. #define isc_info_sql_stmt_put_segment     7
  2179. #define isc_info_sql_stmt_exec_procedure  8
  2180. #define isc_info_sql_stmt_start_trans     9
  2181. #define isc_info_sql_stmt_commit          10
  2182. #define isc_info_sql_stmt_rollback        11
  2183. #define isc_info_sql_stmt_select_for_upd  12
  2184. #define isc_info_sql_stmt_set_generator   13
  2185.  
  2186. /***********************************/
  2187. /* Server configuration key values */
  2188. /***********************************/
  2189.  
  2190. #define    ISCCFG_LOCKMEM_KEY    0
  2191. #define ISCCFG_LOCKSEM_KEY    1
  2192. #define ISCCFG_LOCKSIG_KEY    2
  2193. #define ISCCFG_EVNTMEM_KEY    3
  2194. #define ISCCFG_DBCACHE_KEY    4
  2195. #define ISCCFG_PRIORITY_KEY    5
  2196. #define ISCCFG_IPCMAP_KEY    6
  2197. #define ISCCFG_MEMMIN_KEY    7
  2198. #define ISCCFG_MEMMAX_KEY    8
  2199. #define    ISCCFG_LOCKORDER_KEY    9
  2200. #define    ISCCFG_ANYLOCKMEM_KEY    10
  2201. #define ISCCFG_ANYLOCKSEM_KEY    11
  2202. #define ISCCFG_ANYLOCKSIG_KEY    12
  2203. #define ISCCFG_ANYEVNTMEM_KEY    13
  2204. #define ISCCFG_LOCKHASH_KEY    14
  2205. #define ISCCFG_DEADLOCK_KEY    15
  2206. #define ISCCFG_LOCKSPIN_KEY    16
  2207. #define ISCCFG_CONN_TIMEOUT_KEY 17
  2208. #define ISCCFG_DUMMY_INTRVL_KEY 18
  2209. #define ISCCFG_TRACE_POOLS_KEY  19   /* Internal Use only */
  2210. #define ISCCFG_REMOTE_BUFFER_KEY    20
  2211.  
  2212. /***************/
  2213. /* Error codes */
  2214. /***************/
  2215.  
  2216. #define isc_facility                       20
  2217. #define isc_err_base                       335544320L
  2218. #define isc_err_factor                     1
  2219. #define isc_arg_end                        0
  2220. #define isc_arg_gds                        1
  2221. #define isc_arg_string                     2
  2222. #define isc_arg_cstring                    3
  2223. #define isc_arg_number                     4
  2224. #define isc_arg_interpreted                5
  2225. #define isc_arg_vms                        6
  2226. #define isc_arg_unix                       7
  2227. #define isc_arg_domain                     8
  2228. #define isc_arg_dos                        9
  2229. #define isc_arg_mpexl                      10
  2230. #define isc_arg_mpexl_ipc                  11
  2231. #define isc_arg_next_mach           15
  2232. #define isc_arg_netware                   16
  2233. #define isc_arg_win32                      17
  2234. #define isc_arg_warning                    18
  2235.  
  2236. #include <iberror.h>
  2237.  
  2238. /**********************************************/
  2239. /* Dynamic Data Definition Language operators */
  2240. /**********************************************/
  2241.  
  2242. /******************/
  2243. /* Version number */
  2244. /******************/
  2245.  
  2246. #define isc_dyn_version_1                 1
  2247. #define isc_dyn_eoc                       255
  2248.  
  2249. /******************************/
  2250. /* Operations (may be nested) */
  2251. /******************************/
  2252.  
  2253. #define isc_dyn_begin                     2
  2254. #define isc_dyn_end                       3
  2255. #define isc_dyn_if                        4
  2256. #define isc_dyn_def_database              5
  2257. #define isc_dyn_def_global_fld            6
  2258. #define isc_dyn_def_local_fld             7
  2259. #define isc_dyn_def_idx                   8
  2260. #define isc_dyn_def_rel                   9
  2261. #define isc_dyn_def_sql_fld               10
  2262. #define isc_dyn_def_view                  12
  2263. #define isc_dyn_def_trigger               15
  2264. #define isc_dyn_def_security_class        120
  2265. #define isc_dyn_def_dimension             140
  2266. #define isc_dyn_def_generator             24
  2267. #define isc_dyn_def_function              25
  2268. #define isc_dyn_def_filter                26
  2269. #define isc_dyn_def_function_arg          27
  2270. #define isc_dyn_def_shadow                34
  2271. #define isc_dyn_def_trigger_msg           17
  2272. #define isc_dyn_def_file                  36
  2273. #define isc_dyn_mod_database              39
  2274. #define isc_dyn_mod_rel                   11
  2275. #define isc_dyn_mod_global_fld            13
  2276. #define isc_dyn_mod_idx                   102
  2277. #define isc_dyn_mod_local_fld             14
  2278. #define isc_dyn_mod_sql_fld          216
  2279. #define isc_dyn_mod_view                  16
  2280. #define isc_dyn_mod_security_class        122
  2281. #define isc_dyn_mod_trigger               113
  2282. #define isc_dyn_mod_trigger_msg           28
  2283. #define isc_dyn_delete_database           18
  2284. #define isc_dyn_delete_rel                19
  2285. #define isc_dyn_delete_global_fld         20
  2286. #define isc_dyn_delete_local_fld          21
  2287. #define isc_dyn_delete_idx                22
  2288. #define isc_dyn_delete_security_class     123
  2289. #define isc_dyn_delete_dimensions         143
  2290. #define isc_dyn_delete_trigger            23
  2291. #define isc_dyn_delete_trigger_msg        29
  2292. #define isc_dyn_delete_filter             32
  2293. #define isc_dyn_delete_function           33
  2294. #define isc_dyn_delete_shadow             35
  2295. #define isc_dyn_grant                     30
  2296. #define isc_dyn_revoke                    31
  2297. #define isc_dyn_def_primary_key           37
  2298. #define isc_dyn_def_foreign_key           38
  2299. #define isc_dyn_def_unique                40
  2300. #define isc_dyn_def_procedure             164
  2301. #define isc_dyn_delete_procedure          165
  2302. #define isc_dyn_def_parameter             135
  2303. #define isc_dyn_delete_parameter          136
  2304. #define isc_dyn_mod_procedure             175
  2305. #define isc_dyn_def_log_file              176
  2306. #define isc_dyn_def_cache_file            180
  2307. #define isc_dyn_def_exception             181
  2308. #define isc_dyn_mod_exception             182
  2309. #define isc_dyn_del_exception             183
  2310. #define isc_dyn_drop_log                  194
  2311. #define isc_dyn_drop_cache                195
  2312. #define isc_dyn_def_default_log           202
  2313.  
  2314. /***********************/
  2315. /* View specific stuff */
  2316. /***********************/
  2317.  
  2318. #define isc_dyn_view_blr                  43
  2319. #define isc_dyn_view_source               44
  2320. #define isc_dyn_view_relation             45
  2321. #define isc_dyn_view_context              46
  2322. #define isc_dyn_view_context_name         47
  2323.  
  2324. /**********************/
  2325. /* Generic attributes */
  2326. /**********************/
  2327.  
  2328. #define isc_dyn_rel_name                  50
  2329. #define isc_dyn_fld_name                  51
  2330. #define isc_dyn_new_fld_name          215
  2331. #define isc_dyn_idx_name                  52
  2332. #define isc_dyn_description               53
  2333. #define isc_dyn_security_class            54
  2334. #define isc_dyn_system_flag               55
  2335. #define isc_dyn_update_flag               56
  2336. #define isc_dyn_prc_name                  166
  2337. #define isc_dyn_prm_name                  137
  2338. #define isc_dyn_sql_object                196
  2339. #define isc_dyn_fld_character_set_name    174
  2340.  
  2341. /********************************/
  2342. /* Relation specific attributes */
  2343. /********************************/
  2344.  
  2345. #define isc_dyn_rel_dbkey_length          61
  2346. #define isc_dyn_rel_store_trig            62
  2347. #define isc_dyn_rel_modify_trig           63
  2348. #define isc_dyn_rel_erase_trig            64
  2349. #define isc_dyn_rel_store_trig_source     65
  2350. #define isc_dyn_rel_modify_trig_source    66
  2351. #define isc_dyn_rel_erase_trig_source     67
  2352. #define isc_dyn_rel_ext_file              68
  2353. #define isc_dyn_rel_sql_protection        69
  2354. #define isc_dyn_rel_constraint            162
  2355. #define isc_dyn_delete_rel_constraint     163
  2356.  
  2357. /************************************/
  2358. /* Global field specific attributes */
  2359. /************************************/
  2360.  
  2361. #define isc_dyn_fld_type                  70
  2362. #define isc_dyn_fld_length                71
  2363. #define isc_dyn_fld_scale                 72
  2364. #define isc_dyn_fld_sub_type              73
  2365. #define isc_dyn_fld_segment_length        74
  2366. #define isc_dyn_fld_query_header          75
  2367. #define isc_dyn_fld_edit_string           76
  2368. #define isc_dyn_fld_validation_blr        77
  2369. #define isc_dyn_fld_validation_source     78
  2370. #define isc_dyn_fld_computed_blr          79
  2371. #define isc_dyn_fld_computed_source       80
  2372. #define isc_dyn_fld_missing_value         81
  2373. #define isc_dyn_fld_default_value         82
  2374. #define isc_dyn_fld_query_name            83
  2375. #define isc_dyn_fld_dimensions            84
  2376. #define isc_dyn_fld_not_null              85
  2377. #define isc_dyn_fld_precision             86
  2378. #define isc_dyn_fld_char_length           172
  2379. #define isc_dyn_fld_collation             173
  2380. #define isc_dyn_fld_default_source        193
  2381. #define isc_dyn_del_default               197
  2382. #define isc_dyn_del_validation            198
  2383. #define isc_dyn_single_validation         199
  2384. #define isc_dyn_fld_character_set         203
  2385.  
  2386. /***********************************/
  2387. /* Local field specific attributes */
  2388. /***********************************/
  2389.  
  2390. #define isc_dyn_fld_source                90
  2391. #define isc_dyn_fld_base_fld              91
  2392. #define isc_dyn_fld_position              92
  2393. #define isc_dyn_fld_update_flag           93
  2394.  
  2395. /*****************************/
  2396. /* Index specific attributes */
  2397. /*****************************/
  2398.  
  2399. #define isc_dyn_idx_unique                100
  2400. #define isc_dyn_idx_inactive              101
  2401. #define isc_dyn_idx_type                  103
  2402. #define isc_dyn_idx_foreign_key           104
  2403. #define isc_dyn_idx_ref_column            105
  2404. #define isc_dyn_idx_statistic          204
  2405.  
  2406. /*******************************/
  2407. /* Trigger specific attributes */
  2408. /*******************************/
  2409.  
  2410. #define isc_dyn_trg_type                  110
  2411. #define isc_dyn_trg_blr                   111
  2412. #define isc_dyn_trg_source                112
  2413. #define isc_dyn_trg_name                  114
  2414. #define isc_dyn_trg_sequence              115
  2415. #define isc_dyn_trg_inactive              116
  2416. #define isc_dyn_trg_msg_number            117
  2417. #define isc_dyn_trg_msg                   118
  2418.  
  2419. /**************************************/
  2420. /* Security Class specific attributes */
  2421. /**************************************/
  2422.  
  2423. #define isc_dyn_scl_acl                   121
  2424. #define isc_dyn_grant_user                130
  2425. #define isc_dyn_grant_proc                186
  2426. #define isc_dyn_grant_trig                187
  2427. #define isc_dyn_grant_view                188
  2428. #define isc_dyn_grant_options             132
  2429. #define isc_dyn_grant_user_group          205
  2430.  
  2431.  
  2432. /**********************************/
  2433. /* Dimension specific information */
  2434. /**********************************/
  2435.  
  2436. #define isc_dyn_dim_lower                 141
  2437. #define isc_dyn_dim_upper                 142
  2438.  
  2439. /****************************/
  2440. /* File specific attributes */
  2441. /****************************/
  2442.  
  2443. #define isc_dyn_file_name                 125
  2444. #define isc_dyn_file_start                126
  2445. #define isc_dyn_file_length               127
  2446. #define isc_dyn_shadow_number             128
  2447. #define isc_dyn_shadow_man_auto           129
  2448. #define isc_dyn_shadow_conditional        130
  2449.  
  2450. /********************************/
  2451. /* Log file specific attributes */
  2452. /********************************/
  2453.  
  2454. #define isc_dyn_log_file_sequence         177
  2455. #define isc_dyn_log_file_partitions       178
  2456. #define isc_dyn_log_file_serial           179
  2457. #define isc_dyn_log_file_overflow         200
  2458. #define isc_dyn_log_file_raw          201
  2459.  
  2460. /***************************/
  2461. /* Log specific attributes */
  2462. /***************************/
  2463.  
  2464. #define isc_dyn_log_group_commit_wait     189 
  2465. #define isc_dyn_log_buffer_size           190
  2466. #define isc_dyn_log_check_point_length    191
  2467. #define isc_dyn_log_num_of_buffers        192
  2468.  
  2469. /********************************/
  2470. /* Function specific attributes */
  2471. /********************************/
  2472.  
  2473. #define isc_dyn_function_name             145
  2474. #define isc_dyn_function_type             146
  2475. #define isc_dyn_func_module_name          147
  2476. #define isc_dyn_func_entry_point          148
  2477. #define isc_dyn_func_return_argument      149
  2478. #define isc_dyn_func_arg_position         150
  2479. #define isc_dyn_func_mechanism            151
  2480. #define isc_dyn_filter_in_subtype         152
  2481. #define isc_dyn_filter_out_subtype        153
  2482.  
  2483.  
  2484. #define isc_dyn_description2          154    
  2485. #define isc_dyn_fld_computed_source2      155    
  2486. #define isc_dyn_fld_edit_string2      156
  2487. #define isc_dyn_fld_query_header2      157
  2488. #define isc_dyn_fld_validation_source2      158
  2489. #define isc_dyn_trg_msg2          159
  2490. #define isc_dyn_trg_source2          160
  2491. #define isc_dyn_view_source2          161
  2492. #define isc_dyn_xcp_msg2          184
  2493.  
  2494. /*********************************/
  2495. /* Generator specific attributes */
  2496. /*********************************/
  2497.  
  2498. #define isc_dyn_generator_name            95
  2499. #define isc_dyn_generator_id              96
  2500.  
  2501. /*********************************/
  2502. /* Procedure specific attributes */
  2503. /*********************************/
  2504.  
  2505. #define isc_dyn_prc_inputs                167
  2506. #define isc_dyn_prc_outputs               168
  2507. #define isc_dyn_prc_source                169
  2508. #define isc_dyn_prc_blr                   170
  2509. #define isc_dyn_prc_source2               171
  2510.  
  2511. /*********************************/
  2512. /* Parameter specific attributes */
  2513. /*********************************/
  2514.  
  2515. #define isc_dyn_prm_number                138
  2516. #define isc_dyn_prm_type                  139
  2517.  
  2518. /********************************/
  2519. /* Relation specific attributes */
  2520. /********************************/
  2521.  
  2522. #define isc_dyn_xcp_msg                   185
  2523.  
  2524. /**********************************************/
  2525. /* Cascading referential integrity values     */
  2526. /**********************************************/
  2527. #define isc_dyn_foreign_key_update        205
  2528. #define isc_dyn_foreign_key_delete        206
  2529. #define isc_dyn_foreign_key_cascade       207
  2530. #define isc_dyn_foreign_key_default       208
  2531. #define isc_dyn_foreign_key_null          209
  2532. #define isc_dyn_foreign_key_none          210
  2533.  
  2534. /***********************/
  2535. /* SQL role values     */
  2536. /***********************/
  2537. #define isc_dyn_def_sql_role              211
  2538. #define isc_dyn_sql_role_name             212
  2539. #define isc_dyn_grant_admin_options       213
  2540. #define isc_dyn_del_sql_role              214
  2541.  
  2542. /****************************/
  2543. /* Last $dyn value assigned */
  2544. /****************************/
  2545.  
  2546. #define isc_dyn_last_dyn_value            216
  2547.  
  2548. /******************************************/
  2549. /* Array slice description language (SDL) */
  2550. /******************************************/
  2551.  
  2552. #define isc_sdl_version1                  1
  2553. #define isc_sdl_eoc                       255
  2554. #define isc_sdl_relation                  2
  2555. #define isc_sdl_rid                       3
  2556. #define isc_sdl_field                     4
  2557. #define isc_sdl_fid                       5
  2558. #define isc_sdl_struct                    6
  2559. #define isc_sdl_variable                  7
  2560. #define isc_sdl_scalar                    8
  2561. #define isc_sdl_tiny_integer              9
  2562. #define isc_sdl_short_integer             10
  2563. #define isc_sdl_long_integer              11
  2564. #define isc_sdl_literal                   12
  2565. #define isc_sdl_add                       13
  2566. #define isc_sdl_subtract                  14
  2567. #define isc_sdl_multiply                  15
  2568. #define isc_sdl_divide                    16
  2569. #define isc_sdl_negate                    17
  2570. #define isc_sdl_eql                       18
  2571. #define isc_sdl_neq                       19
  2572. #define isc_sdl_gtr                       20
  2573. #define isc_sdl_geq                       21
  2574. #define isc_sdl_lss                       22
  2575. #define isc_sdl_leq                       23
  2576. #define isc_sdl_and                       24
  2577. #define isc_sdl_or                        25
  2578. #define isc_sdl_not                       26
  2579. #define isc_sdl_while                     27
  2580. #define isc_sdl_assignment                28
  2581. #define isc_sdl_label                     29
  2582. #define isc_sdl_leave                     30
  2583. #define isc_sdl_begin                     31
  2584. #define isc_sdl_end                       32
  2585. #define isc_sdl_do3                       33
  2586. #define isc_sdl_do2                       34
  2587. #define isc_sdl_do1                       35
  2588. #define isc_sdl_element                   36
  2589.  
  2590. /********************************************/
  2591. /* International text interpretation values */
  2592. /********************************************/
  2593.  
  2594. #define isc_interp_eng_ascii              0
  2595. #define isc_interp_jpn_sjis               5
  2596. #define isc_interp_jpn_euc                6
  2597.  
  2598. /*******************/
  2599. /* SQL definitions */
  2600. /*******************/
  2601.  
  2602. #define SQL_TEXT                           452
  2603. #define SQL_VARYING                        448
  2604. #define SQL_SHORT                          500
  2605. #define SQL_LONG                           496
  2606. #define SQL_FLOAT                          482
  2607. #define SQL_DOUBLE                         480
  2608. #define SQL_D_FLOAT                        530
  2609. #define SQL_TIMESTAMP                      510
  2610. #define SQL_BLOB                           520
  2611. #define SQL_ARRAY                          540
  2612. #define SQL_QUAD                           550
  2613. #define SQL_TYPE_TIME               560
  2614. #define SQL_TYPE_DATE                      570
  2615. #define SQL_INT64               580
  2616.  
  2617. /* Historical alias for pre V6 applications */
  2618. #define SQL_DATE            SQL_TIMESTAMP
  2619.  
  2620. /*****************/
  2621. /* Blob Subtypes */
  2622. /*****************/
  2623.  
  2624. /* types less than zero are reserved for customer use */
  2625.  
  2626. #define isc_blob_untyped                   0
  2627.  
  2628. /* internal subtypes */
  2629.  
  2630. #define isc_blob_text                      1
  2631. #define isc_blob_blr                       2
  2632. #define isc_blob_acl                       3
  2633. #define isc_blob_ranges                    4
  2634. #define isc_blob_summary                   5
  2635. #define isc_blob_format                    6
  2636. #define isc_blob_tra                       7
  2637. #define isc_blob_extfile                   8
  2638.  
  2639. /* the range 20-30 is reserved for dBASE and Paradox types */
  2640.  
  2641. #define isc_blob_formatted_memo            20
  2642. #define isc_blob_paradox_ole               21
  2643. #define isc_blob_graphic                   22
  2644. #define isc_blob_dbase_ole                 23
  2645. #define isc_blob_typed_binary              24
  2646.  
  2647. /* Deprecated definitions maintained for compatibility only */
  2648.  
  2649. #define isc_info_db_SQL_dialect           62
  2650. #define isc_dpb_SQL_dialect               63
  2651. #define isc_dpb_set_db_SQL_dialect        65
  2652.  
  2653. #endif                  /* _JRD_IBASE_H_ */
  2654.