2
Licensed Materials - Property of IBM
3
DB2 Storage Engine Enablement
4
Copyright IBM Corporation 2007,2008
7
Redistribution and use in source and binary forms, with or without modification,
8
are permitted provided that the following conditions are met:
9
(a) Redistributions of source code must retain this list of conditions, the
10
copyright notice in section {d} below, and the disclaimer following this
12
(b) Redistributions in binary form must reproduce this list of conditions, the
13
copyright notice in section (d) below, and the disclaimer following this
14
list of conditions, in the documentation and/or other materials provided
15
with the distribution.
16
(c) The name of IBM may not be used to endorse or promote products derived from
17
this software without specific prior written permission.
18
(d) The text of the required copyright notice is:
19
Licensed Materials - Property of IBM
20
DB2 Storage Engine Enablement
21
Copyright IBM Corporation 2007,2008
24
THIS SOFTWARE IS PROVIDED BY IBM CORPORATION "AS IS" AND ANY EXPRESS OR IMPLIED
25
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
26
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
27
SHALL IBM CORPORATION BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
28
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
29
OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
30
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
31
CONTRACT, STRICT LIABILITY, OR TORT INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
32
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
46
@brief These are the errors that can be returned by the storage engine proper
47
and that are specific to the engine. Refer to db2i_errors.cc for text
48
descriptions of the errors.
53
DB2I_FIRST_ERR = 2500,
55
DB2I_ERR_INVALID_NAME,
57
DB2I_ERR_UNSUPP_CHARSET,
58
DB2I_ERR_PART_AUTOINC,
59
DB2I_ERR_UNKNOWN_ENCODING,
61
DB2I_ERR_TABLE_NOT_FOUND,
68
DB2I_ERR_INVALID_COL_VALUE,
69
DB2I_ERR_TOO_LONG_SCHEMA,
70
DB2I_ERR_MIXED_COLLATIONS,
74
DB2I_ERR_INVALID_DATA,
77
DB2I_ERR_BAD_RDB_NAME,
79
DB2I_ERR_DISCOVERY_MISMATCH,
80
DB2I_ERR_WARN_CREATE_DISCOVER,
81
DB2I_ERR_WARN_COL_ATTRS,
82
DB2I_LAST_ERR = DB2I_ERR_WARN_COL_ATTRS
85
void getErrTxt(int errcode, ...);
86
void reportSystemAPIError(int errCode, const Qmy_Error_output *errInfo);
87
void warning(THD *thd, int errCode, ...);
89
const char* DB2I_SQL0350 = "\xE2\xD8\xD3\xF0\xF3\xF5\xF0"; // SQL0350 in EBCDIC
90
const char* DB2I_CPF503A = "\xC3\xD7\xC6\xF5\xF0\xF3\xC1"; // CPF503A in EBCDIC
91
const char* DB2I_SQL0538 = "\xE2\xD8\xD3\xF0\xF5\xF3\xF8"; // SQL0538 in EBCDIC