dberrs.h
Go to the documentation of this file.
1 /*--------------------------------------------------------------------------------------+
2 |
3 | Supplied under applicable software license agreement.
4 |
5 | Copyright (c) 2018 Bentley Systems, Incorporated. All rights reserved.
6 |
7 +---------------------------------------------------------------------------------------*/
8 #pragma once
9 
10 /*----------------------------------------------------------------------+
11 | |
12 | Common SQL database message defines. |
13 | |
14 +----------------------------------------------------------------------*/
15 #define RETURN_TO_CONT 5000 /* "Return to Continue" */
16 #define DB_SUCCESS 5001 /* normal successful completion */
17 #define FILTER_STATUS 5002 /* fence filter status */
18 #define ROW_DELETED 5003 /* row deleted in element deletion */
19 #define LINKAGE_MODE 5004 /* linkage mode string */
20 #define ON_STRING 5005 /* "On" */
21 #define OFF_STRING 5006 /* "Off" */
22 #define NONE_STRING 5007 /* "NONE" */
23 #define DELETE_ENTITY 5008 /* "Delete Entity: " */
24 #define KEYIN_PROCESSED 5009 /* keyin processed */
25 #define DATABASE_NAME 5010 /* database name */
26 #define DATA_RESET 5011 /* Data to Accept/Reset to Continue */
27 #define PROCESSING_REQUEST 5012 /* Processing database request */
28 #define BUILDING_AE_TABLE 5013 /* Building AE table... */
29 #define NULL_MESSAGE 5016 /* empty string */
30 #define PROCESSING_TABLE 5018 /* Processing table */
31 #define CONFIRMATION_MODE 5020 /* SET CONFIRM mode */
32 #define LINKAGE_DETACHED 5021 /* linkage detached from element */
33 #define LINKAGE_ATTACHED 5022 /* linkage attached to element */
34 #define AUTOCOMMIT_MODE 5023 /* auto commit mode */
35 #define RELEASE_MODE 5024 /* release resources mode */
36 #define MDLDIALOGS_MODE 5025 /* MDL query dialog mode */
37 #define WORK_COMMITTED 5026 /* work committed */
38 #define WORK_ROLLEDBACK 5027 /* rollback */
39 #define DEBUG_MODE 5028 /* debug mode */
40 #define REVIEW_SELECT_UPDATED 5029 /* review SELECT updated */
41 #define REPORT_TABLE_UPDATED 5030 /* report table updated */
42 #define EXTERNAL_DEBUG_MODE 5031 /* external debug mode */
43 #define SUCCESSFUL_CONNECT 5032 /* Connected to database */
44 #define MDLSQL_DISCONNECTED 5033 /* Disconnected to database */
45 #define BUILDING_MSFORMS_TABLE 5034 /* Building MSFORMS table ... */
46 #define OPEN_COMMAND_FILE 5035 /* opened the SQL command file */
47 #define MDLSQL_WORKING 5036 /* Working ... */
48 #define FORMS_MODE 5037 /* Forms Mode: %s */
49 #define DIALOG_FORMS 5038 /* Forms Dialog */
50 #define TEXT_FORMS 5039 /* Text Screen */
51 #define STATEMENT_PROCESSED 5040 /* SQL Statement Processed */
52 #define IPC_DEBUG_MODE 5041 /* ipc debug mode */
53 #define SAVE_COMMAND_FILE 5042 /* saved the SQL command file */
54 
55 /*----------------------------------------------------------------------+
56 | |
57 | Common SQL database error defines. |
58 | |
59 +----------------------------------------------------------------------*/
60 #define DB_INSUFFICIENT_MEMORY 4000 /* allocate database memory */
61 #define SYNTAX_ERROR 4001 /* command line syntax error */
62 #define NO_AE_DEFINED 4002 /* no active entity defined */
63 #define NO_WRITE 4003 /* row not written to database */
64 #define NO_LINK_DATA 4004 /* no database linkage present */
65 #define NO_REPORT 4005 /* unable to generate report file */
66 #define NO_ENTITY 4006 /* no entity specified */
67 #define NO_MSLINK 4007 /* no MSLINK column in table */
68 #define REPORT_BADOPEN 4008 /* unable to open report file. */
69 #define ENTITY_BADVALUE 4009 /* entity number out of bounds */
70 #define FORMAT_NOTFOUND 4010 /* screen form file not found. */
71 #define NULL_LINK_MODE 4011 /* NULL linkage generation mode */
72 #define DB_FILE_NOT_FOUND 4012 /* file not found */
73 #define DB_NOT_FOUND 4014 /* unable to locate database */
74 #define NO_MSCATALOG 4015 /* unable to read MSCATALOG table */
75 #define NOT_UNIQUE 4016 /* more than 1 row returned by FIND*/
76 #define NOT_SELECT_REQUEST 4017 /* not a Select statement */
77 #define DB_NOT_VALID 4018 /* database is not valid */
78 #define NO_ROWS 4019 /* no rows returned from FIND */
79 #define NO_MSLINK_COLUMN 4020 /* no MSLINK column in the table */
80 #define BAD_MSCATALOG 4021 /* illegal format of MSCATALOG */
81 #define NO_REVIEW 4022 /* unable to review attributes */
82 #define BAD_REVIEW_TABLE 4023 /* bad review table */
83 #define NO_MSCATALOG_ENTRY 4024 /* table not present in MSCATALOG */
84 #define NO_MSCATALOG_UPDATE 4025 /* unable to update MSCATALOG table */
85 #define BAD_REPORTFILE 4026 /* bad report specification */
86 #define BAD_MSLINK 4027 /* bad MSLINK key in DBREAD/DBWRITE */
87 #define DATABASE_NOT_FOUND 4028 /* database not found */
88 #define BAD_FENCE_FILTER 4029 /* bad fence filter */
89 #define NO_DB_TASK_SLOTS 4030 /* no more slots for tasks */
90 #define DB_QUEUE_INIT_ERROR 4031 /* unable to create message queue */
91 #define BAD_COLUMN 4032 /* column number out of bounds */
92 #define ILLEGAL_CC_CODE 4033 /* illegal scan comparison code */
93 #define BAD_LINKTYPE 4034 /* illegal types in MS_LINKTYPE */
94 #define UNKNOWN_DATATYPE 4035 /* bad data type during DB_GETFMT */
95 #define BAD_CONNECT 4036 /* bad CONNECT statement format */
96 #define MSLINK_NOT_SET 4037 /* error assigning MSLINK */
97 #define BUILD_AETABLE_ERROR 4038 /* error building "ae" table */
98 #define LOAD_AETABLE_ERROR 4039 /* error loading "ae" table */
99 #define NO_ROWS_RETURNED 4040 /* no rows returned by SELECT */
100 #define FORM_NOT_FOUND 4042 /* screen form not found */
101 #define BAD_FORMS_COMMAND 4043 /* illegal forms command */
102 #define NO_DAS_TABLE 4044 /* no DAS table for this entity */
103 #define NO_DAS_ENTRY 4048 /* no entry in DAS table */
104 #define BAD_FORM_COMMAND 4049 /* invalid form command entered */
105 #define DESCRIPTOR_ERROR 4050 /* allocation error for descriptor */
106 #define BAD_RESOURCE_FILE 4051 /* error opening resource file */
107 #define DESCRIBE_SQL_ERROR 4053 /* SQL error during table describe */
108 #define DESCR_OVERFLOW 4054 /* descriptor larger than message */
109 #define ROW_OVERFLOW 4055 /* row larger than message packet */
110 #define NO_ACTIVE_QUERY 4056 /* fetch failed, no active query */
111 #define NO_DAS_FORM 4057 /* no form defined for DAS type */
112 #define AE_REQUIRES_INSERT 4058 /* AE= command requires INSERT */
113 #define NULL_LINKAGE_MODE 4059 /* NULL linkage mode active */
114 #define ROW_DELETE_ERROR 4060 /* error deleting table row */
115 #define TABLE_NOT_OPEN 4061 /* table not open */
116 #define AE_FOR_NEWLINK 4062 /* AE command only for NEW mode */
117 #define USE_ACTUAL_TABLE 4063 /* AE command use actual table */
118 #define NO_AVAILABLE_CURSORS 4064 /* all cursors are open */
119 #define DBLOADER_NOT_ACTIVE 4065 /* database server loader mdl app is not active */
120 #define NO_COMMAND_FILE 4066 /* SQL command file is not found */
121 #define ELEMENT_NOT_FOUND 4067 /* element is not found */
122 #define NO_FORMS 4068 /* no forms */
123 #define NO_ENTITY_IN_MSCATALOG 4069 /* entity not in mscatalog */
124 #define NO_DBSPECIFIC_MDL 4070 /* no database specific MDL program */
125 #define LAST_ERROR 4071 /* get the last error from the external mdl prog */
126 #define NO_FORM_TABLE 4072 /* no form table defined */
127 #define NO_TYPED_FORM 4073 /* no form of proper type for table */
128 #define NO_EDIT_WO_FORM 4074 /* can't edit ae without forms on */
129 #define CURSOR_NOT_OPEN 4075 /* cursor to fetch from is not open */
130 #define NO_TABLENAMES_RETURNED 4076 /* no table names returned from describeDatabase */
131 #define INVALID_INSERT_STMT 4077 /* insert statement is invalid */
132 #define CURSOR_ALREADY_OPEN 4078 /* specified cursor was already open */
133 #define NOT_LOGGED_IN 4079 /* not logged in */
134 #define BAD_FIND_FORMAT 4080 /* bad input for fi= command */
135 #define NO_ROWS_PROCESSED 4081 /* no rows were processed in a process stmt */
136 #define REQ_FIELD_NOT_DEFD 4082 /* required field not defined */
137 
138 #define FORMMANAGER_NOT_FOUND 4541 /* form manager program not found */
139 #define ECHO_FILE_NOT_FOUND 4545 /* form echo file not found */
140 #define FORMMANAGER_ERROR 4546 /* error starting form manager */
141 #define NO_SPOOL_FILE 4547 /* no screen form output file found */
142 

Copyright © 2017 Bentley Systems, Incorporated. All rights reserved.