rasdaman base DBMS
Main Page
Modules
Classes
Files
File List
File Members
reladminif
externs.h
Go to the documentation of this file.
1
/*
2
* This file is part of rasdaman community.
3
*
4
* Rasdaman community is free software: you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation, either version 3 of the License, or
7
* (at your option) any later version.
8
*
9
* Rasdaman community is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with rasdaman community. If not, see <http://www.gnu.org/licenses/>.
16
*
17
* Copyright 2003, 2004, 2005, 2006, 2007, 2008, 2009 Peter Baumann /
18
rasdaman GmbH.
19
*
20
* For more information please see <http://www.rasdaman.org>
21
* or contact Peter Baumann via <baumann@rasdaman.com>.
22
*/
23
/*****************************************************************************
24
*
25
*
26
* PURPOSE:
27
* provide global definitions for embedded SQL usage (any base DBMS)
28
*
29
*
30
* COMMENTS:
31
* - uses embedded SQL
32
* - FIXME: should also contain stuff from sqlglobals.h, merge some time
33
*
34
*****************************************************************************/
35
36
#ifndef _EXTERNS_H_
37
#define _EXTERNS_H_
38
39
const
int
SQLOK
= 0;
40
const
short
INDNULL
= -1;
41
42
#ifdef BASEDB_INFORMIX
43
const
int
SQLNULLFETCHED = -245;
44
const
int
SQLTABLEUNKNOWN = -206;
45
const
int
SQLNODATAFOUND = 100;
46
47
//SQLCODE and SQLSTATE are defined in the sqlca.h file
48
#endif // informix
49
50
#ifdef BASEDB_DB2
51
const
int
SQLNULLFETCHED = -1405;
52
const
int
SQLTABLEUNKNOWN = -942;
53
const
int
SQLNODATAFOUND = 100;
54
55
//declared in sqlerror.sqC
56
extern
long
SQLCODE;
57
extern
char
SQLSTATE[6];
58
59
#endif // db2
60
61
#ifdef BASEDB_ORACLE
62
const
int
SQLNULLFETCHED = -1405;
63
const
int
SQLTABLEUNKNOWN = -942;
64
const
int
SQLNODATAFOUND = 100;
65
66
#include <sqlca.h>
67
#define SQLCODE sqlca.sqlcode
68
69
//declared in sqlerror.pc
70
extern
struct
sqlca sqlca;
71
#endif // oracle
72
73
#ifdef BASEDB_PGSQL
74
#include "ecpgerrno.h"
// PgSQL error codes
75
// const int SQLNULLFETCHED = -1405; unused
76
// const int SQLTABLEUNKNOWN = -942; not supported by PG
77
const
int
SQLNODATAFOUND = ECPG_NOT_FOUND;
78
//SQLCODE and SQLSTATE are defined in the sqlca.h file
79
#endif // pgsql
80
81
#endif // _EXTERNS_H_
INDNULL
const short INDNULL
Definition:
externs.h:40
SQLOK
const int SQLOK
Definition:
externs.h:39
Generated on Sun Jun 8 2014 16:36:20 for rasdaman base DBMS by
1.8.6