Annotation of win32/sql/oracle/include/oci/ocidem.h, revision 1.1.1.1

1.1       parser      1: /*
                      2:  * $Header: /var/lib/cvsroot/parser3/parser3/src/sql/oracle/oracle32/include/oci/ocidem.h,v 1.1 2001/08/22 14:02:19 parser Exp $ 
                      3:  */
                      4: 
                      5: /* Copyright (c) 1991, 1996, 1997, 1999 by Oracle Corporation */
                      6: /* Copyright (c) 1991, 1997, 1999 by Oracle Corporation */
                      7: /*
                      8:    NAME
                      9:      ocidem.h - OCI demo header
                     10:    MODIFIED   (MM/DD/YY)
                     11:     whe        04/07/99 -  bug#810071
                     12:     whe        03/19/99 -  lrg 32079 etc.: putting static back for oci_func_tab
                     13:     nmacnaug   02/02/99 -  static declarations should not be in header files
                     14:     mygopala   09/22/97 -  Fix for bug 550351
                     15:     surman     03/14/97 -  Merge 413362 to 8.0.3
                     16:     surman     11/08/96 -  413362: Add SS_64BIT_SERVER macro
                     17:     emendez    04/07/94 -  merge changes from branch 1.6.710.1
                     18:     emendez    02/02/94 -  Fix for bug 157576
                     19:     jnlee      01/05/93 -  include oratypes.h once, make oci_func_tab static
                     20:     rkooi2     10/26/92 -  More portability mods 
                     21:     rkooi2     10/22/92 -  Change text back to char to avoid casts 
                     22:     rkooi2     10/20/92 -  Changes to make it portable 
                     23:     sjain      03/16/92 -  Creation 
                     24: */
                     25: 
                     26: /*
                     27:  *  ocidem.h
                     28:  *
                     29:  *  Declares additional functions and data structures
                     30:  *  used in the OCI C sample programs.
                     31:  */
                     32: 
                     33: 
                     34: #ifndef ORATYPES
                     35: #include <oratypes.h>
                     36: #endif /* ORATYPES */
                     37: 
                     38: #ifndef OCIDFN
                     39: #include <ocidfn.h>
                     40: #endif /* OCIDFN */
                     41: 
                     42: #ifndef OCIDEM
                     43: #define OCIDEM
                     44: 
                     45: 
                     46: /*  internal/external datatype codes */
                     47: #define VARCHAR2_TYPE            1
                     48: #define NUMBER_TYPE              2
                     49: #define INT_TYPE                3
                     50: #define FLOAT_TYPE               4
                     51: #define STRING_TYPE              5
                     52: #define ROWID_TYPE              11
                     53: #define DATE_TYPE               12
                     54: 
                     55: /*  ORACLE error codes used in demonstration programs */
                     56: #define VAR_NOT_IN_LIST       1007
                     57: #ifndef NO_DATA_FOUND
                     58: #  define NO_DATA_FOUND         1403
                     59: #endif
                     60: #define NULL_VALUE_RETURNED   1405
                     61: 
                     62: /*  some SQL and OCI function codes */
                     63: #define FT_INSERT                3
                     64: #define FT_SELECT                4
                     65: #define FT_UPDATE                5
                     66: #define FT_DELETE                9
                     67: 
                     68: #define FC_OOPEN                14
                     69: 
                     70: /*
                     71:  *  OCI function code labels,
                     72:  *  corresponding to the fc numbers
                     73:  *  in the cursor data area.
                     74:  */
                     75: static CONST text  *oci_func_tab[] =  {(text *) "not used",
                     76: /* 1-2 */       (text *) "not used", (text *) "OSQL",
                     77: /* 3-4 */       (text *) "not used", (text *) "OEXEC, OEXN",
                     78: /* 5-6 */       (text *) "not used", (text *) "OBIND",
                     79: /* 7-8 */       (text *) "not used", (text *) "ODEFIN",
                     80: /* 9-10 */      (text *) "not used", (text *) "ODSRBN",
                     81: /* 11-12 */     (text *) "not used", (text *) "OFETCH, OFEN",
                     82: /* 13-14 */     (text *) "not used", (text *) "OOPEN",
                     83: /* 15-16 */     (text *) "not used", (text *) "OCLOSE",
                     84: /* 17-18 */     (text *) "not used", (text *) "not used",
                     85: /* 19-20 */     (text *) "not used", (text *) "not used",
                     86: /* 21-22 */     (text *) "not used", (text *) "ODSC",
                     87: /* 23-24 */     (text *) "not used", (text *) "ONAME",
                     88: /* 25-26 */     (text *) "not used", (text *) "OSQL3",
                     89: /* 27-28 */     (text *) "not used", (text *) "OBNDRV",
                     90: /* 29-30 */     (text *) "not used", (text *) "OBNDRN",
                     91: /* 31-32 */     (text *) "not used", (text *) "not used",
                     92: /* 33-34 */     (text *) "not used", (text *) "OOPT",
                     93: /* 35-36 */     (text *) "not used", (text *) "not used",
                     94: /* 37-38 */     (text *) "not used", (text *) "not used",
                     95: /* 39-40 */     (text *) "not used", (text *) "not used",
                     96: /* 41-42 */     (text *) "not used", (text *) "not used",
                     97: /* 43-44 */     (text *) "not used", (text *) "not used",
                     98: /* 45-46 */     (text *) "not used", (text *) "not used",
                     99: /* 47-48 */     (text *) "not used", (text *) "not used",
                    100: /* 49-50 */     (text *) "not used", (text *) "not used",
                    101: /* 51-52 */     (text *) "not used", (text *) "OCAN",
                    102: /* 53-54 */     (text *) "not used", (text *) "OPARSE",
                    103: /* 55-56 */     (text *) "not used", (text *) "OEXFET",
                    104: /* 57-58 */     (text *) "not used", (text *) "OFLNG",
                    105: /* 59-60 */     (text *) "not used", (text *) "ODESCR",
                    106: /* 61-62 */     (text *) "not used", (text *) "OBNDRA",
                    107: /* 63-64 */     (text *) "OBINDPS",  (text *) "ODEFINPS",
                    108: /* 65-66 */     (text *) "OGETPI",   (text *) "OSETPI"
                    109: };
                    110: 
                    111: #endif      /* OCIDEM */
                    112: 

E-mail: