summaryrefslogtreecommitdiffstats
path: root/plugins/omoracle/omoracle.h
blob: 92bcacabfa0df90881b7703e16c3c30e1f874f75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/** Definitions for the Oracle output module.

    This module needs OCI to be installed (on Red Hat-like systems
    this is usually the oracle-instantclient-devel RPM).

    Author: Luis Fernando Muñoz Mejías <Luis.Fernando.Munoz.Mejias@cern.ch>
*/
#ifndef __OMORACLEH__
#define __OMORACLEH__

/** Macros to make error handling easier. */

/** Checks for errors on the OCI handling. */
#define CHECKERR(handle,status) CHKiRet(oci_errors((handle), \
						   OCI_HTYPE_ERROR, (status)))

/** Checks for errors when handling the environment of OCI. */
#define CHECKENV(handle,status) CHKiRet(oci_errors((handle), \
						   OCI_HTYPE_ENV, (status)))

enum { MAX_BUFSIZE = 2048 };

#define BIND_MARK ':'

#endif