PostgreSQL Source Code
git master
Loading...
Searching...
No Matches
ecpgerrno.h
Go to the documentation of this file.
1
/* src/interfaces/ecpg/include/ecpgerrno.h */
2
3
#ifndef _ECPG_ERRNO_H
4
#define _ECPG_ERRNO_H
5
6
#include <errno.h>
7
8
/* This is a list of all error codes the embedded SQL program can return */
9
#define ECPG_NO_ERROR 0
10
#define ECPG_NOT_FOUND 100
11
12
/*
13
* system error codes returned by ecpglib get the correct number,
14
* but are made negative
15
*/
16
#define ECPG_OUT_OF_MEMORY -ENOMEM
17
18
/* first we have a set of ecpg messages, they start at 200 */
19
#define ECPG_UNSUPPORTED -200
20
#define ECPG_TOO_MANY_ARGUMENTS -201
21
#define ECPG_TOO_FEW_ARGUMENTS -202
22
#define ECPG_TOO_MANY_MATCHES -203
23
#define ECPG_INT_FORMAT -204
24
#define ECPG_UINT_FORMAT -205
25
#define ECPG_FLOAT_FORMAT -206
26
#define ECPG_NUMERIC_FORMAT -207
27
#define ECPG_INTERVAL_FORMAT -208
28
#define ECPG_DATE_FORMAT -209
29
#define ECPG_TIMESTAMP_FORMAT -210
30
#define ECPG_CONVERT_BOOL -211
31
#define ECPG_EMPTY -212
32
#define ECPG_MISSING_INDICATOR -213
33
#define ECPG_NO_ARRAY -214
34
#define ECPG_DATA_NOT_ARRAY -215
35
#define ECPG_ARRAY_INSERT -216
36
37
#define ECPG_NO_CONN -220
38
#define ECPG_NOT_CONN -221
39
40
#define ECPG_INVALID_STMT -230
41
42
/* dynamic SQL related */
43
#define ECPG_UNKNOWN_DESCRIPTOR -240
44
#define ECPG_INVALID_DESCRIPTOR_INDEX -241
45
#define ECPG_UNKNOWN_DESCRIPTOR_ITEM -242
46
#define ECPG_VAR_NOT_NUMERIC -243
47
#define ECPG_VAR_NOT_CHAR -244
48
49
/* finally the backend error messages, they start at 400 */
50
#define ECPG_PGSQL -400
51
#define ECPG_TRANS -401
52
#define ECPG_CONNECT -402
53
#define ECPG_DUPLICATE_KEY -403
54
#define ECPG_SUBSELECT_NOT_ONE -404
55
56
/*
57
* for compatibility we define some different error codes for the same error
58
* if adding a new one make sure to not double define it
59
*/
60
#define ECPG_INFORMIX_DUPLICATE_KEY -239
61
#define ECPG_INFORMIX_SUBSELECT_NOT_ONE -284
62
63
/* backend WARNINGs, starting at 600 */
64
#define ECPG_WARNING_UNRECOGNIZED -600
65
/* WARNING: (transaction aborted): queries ignored until END */
66
67
/*
68
* WARNING: current transaction is aborted, queries ignored until end of
69
* transaction block
70
*/
71
#define ECPG_WARNING_QUERY_IGNORED -601
72
/* WARNING: PerformPortalClose: portal "*" not found */
73
#define ECPG_WARNING_UNKNOWN_PORTAL -602
74
/* WARNING: BEGIN: already a transaction in progress */
75
#define ECPG_WARNING_IN_TRANSACTION -603
76
/* WARNING: AbortTransaction and not in in-progress state */
77
/* WARNING: COMMIT: no transaction in progress */
78
#define ECPG_WARNING_NO_TRANSACTION -604
79
/* WARNING: BlankPortalAssignName: portal * already exists */
80
#define ECPG_WARNING_PORTAL_EXISTS -605
81
82
#endif
/* !_ECPG_ERRNO_H */
src
interfaces
ecpg
include
ecpgerrno.h
Generated on Mon May 18 2026 22:13:16 for PostgreSQL Source Code by
1.9.8