| TerraLib 4.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Examples

- File List
- File Members

E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/drivers/Oracle/OCI/include/ocidem.h
Go to the documentation of this file.

    00001 /*
    00002  * $Header$
    00003  */
    00004
    00005 /* Copyright (c) 1991, 1996, 1997, 1999 by Oracle Corporation */
    00006 /* Copyright (c) 1991, 1997, 1999 by Oracle Corporation */
    00007 /*
    00008    NAME
    00009      ocidem.h - OCI demo header
    00010    MODIFIED   (MM/DD/YY)
    00011     whe        04/07/99 -  bug#810071
    00012     whe        03/19/99 -  lrg 32079 etc.: putting static back for oci_func_tab
    00013     nmacnaug   02/02/99 -  static declarations should not be in header files
    00014     mygopala   09/22/97 -  Fix for bug 550351
    00015     surman     03/14/97 -  Merge 413362 to 8.0.3
    00016     surman     11/08/96 -  413362: Add SS_64BIT_SERVER macro
    00017     emendez    04/07/94 -  merge changes from branch 1.6.710.1
    00018     emendez    02/02/94 -  Fix for bug 157576
    00019     jnlee      01/05/93 -  include oratypes.h once, make oci_func_tab static
    00020     rkooi2     10/26/92 -  More portability mods
    00021     rkooi2     10/22/92 -  Change text back to char to avoid casts
    00022     rkooi2     10/20/92 -  Changes to make it portable
    00023     sjain      03/16/92 -  Creation
    00024 */
    00025
    00026 /*
    00027  *  ocidem.h
    00028  *
    00029  *  Declares additional functions and data structures
    00030  *  used in the OCI C sample programs.
    00031  */
    00032
    00033
    00034 #ifndef ORATYPES
    00035 #include <oratypes.h>
    00036 #endif /* ORATYPES */
    00037
    00038 #ifndef OCIDFN
    00039 #include <ocidfn.h>
    00040 #endif /* OCIDFN */
    00041
    00042 #ifndef OCIDEM
    00043 #define OCIDEM
    00044
    00045
    00046 /*  internal/external datatype codes */
    00047 #define VARCHAR2_TYPE            1
    00048 #define NUMBER_TYPE              2
    00049 #define INT_TYPE                  3
    00050 #define FLOAT_TYPE               4
    00051 #define STRING_TYPE              5
    00052 #define ROWID_TYPE              11
    00053 #define DATE_TYPE               12
    00054
    00055 /*  ORACLE error codes used in demonstration programs */
    00056 #define VAR_NOT_IN_LIST       1007
    00057 #ifndef NO_DATA_FOUND
    00058 #  define NO_DATA_FOUND         1403
    00059 #endif
    00060 #define NULL_VALUE_RETURNED   1405
    00061
    00062 /*  some SQL and OCI function codes */
    00063 #define FT_INSERT                3
    00064 #define FT_SELECT                4
    00065 #define FT_UPDATE                5
    00066 #define FT_DELETE                9
    00067
    00068 #define FC_OOPEN                14
    00069
    00070 /*
    00071  *  OCI function code labels,
    00072  *  corresponding to the fc numbers
    00073  *  in the cursor data area.
    00074  */
    00075 static CONST text  *oci_func_tab[] =  {(text *) "not used",
    00076 /* 1-2 */       (text *) "not used", (text *) "OSQL",
    00077 /* 3-4 */       (text *) "not used", (text *) "OEXEC, OEXN",
    00078 /* 5-6 */       (text *) "not used", (text *) "OBIND",
    00079 /* 7-8 */       (text *) "not used", (text *) "ODEFIN",
    00080 /* 9-10 */      (text *) "not used", (text *) "ODSRBN",
    00081 /* 11-12 */     (text *) "not used", (text *) "OFETCH, OFEN",
    00082 /* 13-14 */     (text *) "not used", (text *) "OOPEN",
    00083 /* 15-16 */     (text *) "not used", (text *) "OCLOSE",
    00084 /* 17-18 */     (text *) "not used", (text *) "not used",
    00085 /* 19-20 */     (text *) "not used", (text *) "not used",
    00086 /* 21-22 */     (text *) "not used", (text *) "ODSC",
    00087 /* 23-24 */     (text *) "not used", (text *) "ONAME",
    00088 /* 25-26 */     (text *) "not used", (text *) "OSQL3",
    00089 /* 27-28 */     (text *) "not used", (text *) "OBNDRV",
    00090 /* 29-30 */     (text *) "not used", (text *) "OBNDRN",
    00091 /* 31-32 */     (text *) "not used", (text *) "not used",
    00092 /* 33-34 */     (text *) "not used", (text *) "OOPT",
    00093 /* 35-36 */     (text *) "not used", (text *) "not used",
    00094 /* 37-38 */     (text *) "not used", (text *) "not used",
    00095 /* 39-40 */     (text *) "not used", (text *) "not used",
    00096 /* 41-42 */     (text *) "not used", (text *) "not used",
    00097 /* 43-44 */     (text *) "not used", (text *) "not used",
    00098 /* 45-46 */     (text *) "not used", (text *) "not used",
    00099 /* 47-48 */     (text *) "not used", (text *) "not used",
    00100 /* 49-50 */     (text *) "not used", (text *) "not used",
    00101 /* 51-52 */     (text *) "not used", (text *) "OCAN",
    00102 /* 53-54 */     (text *) "not used", (text *) "OPARSE",
    00103 /* 55-56 */     (text *) "not used", (text *) "OEXFET",
    00104 /* 57-58 */     (text *) "not used", (text *) "OFLNG",
    00105 /* 59-60 */     (text *) "not used", (text *) "ODESCR",
    00106 /* 61-62 */     (text *) "not used", (text *) "OBNDRA",
    00107 /* 63-64 */     (text *) "OBINDPS",  (text *) "ODEFINPS",
    00108 /* 65-66 */     (text *) "OGETPI",   (text *) "OSETPI"
    00109 };
    00110
    00111 #endif      /* OCIDEM */
    00112

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines