home *** CD-ROM | disk | FTP | other *** search
/ PC World 1998 December / PCWorld_1998-12_cd.iso / software / sybase / ASA / asa60.exe / data1.cab / h_files / sqlstate.h < prev   
C/C++ Source or Header  |  1998-07-27  |  21KB  |  368 lines

  1.  /****************************************************************
  2.  *       Copyright (C) 1988-1998, by Sybase, Inc.                *
  3.  *       All rights reserved. No part of this software may be    *
  4.  *       reproduced in any form or by any means - graphic,       *
  5.  *       electronic or mechanical, including photocopying,       *
  6.  *       recording, taping or information storage and retrieval  *
  7.  *       systems - except with the written permission of         *
  8.  *       Sybase, Inc.                                            *
  9.  ****************************************************************/
  10.  
  11. #ifndef _SQLSTATE_H_INCLUDED
  12. #define _SQLSTATE_H_INCLUDED
  13. #define II_SQLSTATE
  14.  
  15. /**************************/
  16. /* sql error return codes */
  17. /**************************/
  18.  
  19. #define SQLSTATE_GENERIC_ERROR          SQLSTATE_ERROR
  20.  
  21. /*      Subtransaction Errors */
  22.  
  23. #define SQLSTATE_SUBTRANS_NOTFOUND                 "3B001"
  24. #define SQLSTATE_SUBTRANS_REQUIRE_UNDO             "3BW01"
  25.  
  26.  
  27. /*    Warnings */
  28.  
  29. #define SQLSTATE_NOERROR                           "00000"
  30. #define SQLSTATE_NOTFOUND                          "02000"
  31. #define SQLSTATE_TRUNCATED                         "01004"
  32. #define SQLSTATE_TEMPORARY_TABLE                   "01W02"
  33. #define SQLSTATE_CANNOT_CONVERT                    "01W03"
  34. #define SQLSTATE_ROW_UPDATED_WARNING               "01W04"
  35. #define SQLSTATE_PROCEDURE_COMPLETE                "01W05"
  36. #define SQLSTATE_COLUMN_VALUE_CHANGED              "01W06"
  37. #define SQLSTATE_CANNOT_EXECUTE_STMT               "01W08"
  38. #define SQLSTATE_WARNING                           "01000"
  39. #define SQLSTATE_HLI_MORE_DATA_AVAILABLE           "01WH1"
  40. #define SQLSTATE_UNABLE_TO_START_ENGINE            "08W07"
  41. #define SQLSTATE_INVALID_COMMAND_LINE              "08W08"
  42. #define SQLSTATE_DATABASE_NOT_ACTIVE               "08W30"
  43. #define SQLSTATE_START_STOP_DATABASE_DENIED        "08W29"
  44. #define SQLSTATE_REQUEST_DENIED_NO_DATABASES       "08W28"
  45. #define SQLSTATE_ALIAS_CLASH                       "08W27"
  46. #define SQLSTATE_INVALID_LOCAL_OPTION              "08W25"
  47. #define SQLSTATE_UNABLE_TO_START_DATABASE          "08W09"
  48. #define SQLSTATE_DATABASE_NOT_FOUND                "08W10"
  49. #define SQLSTATE_INVALID_DATABASE                  "08W11"
  50. #define SQLSTATE_NO_DATABASE_FILE                  "08W39"
  51. #define SQLSTATE_COMMUNICATIONS_ERROR              "08W12"
  52. #define SQLSTATE_COMMUNICATIONS_UNDERFLOW          "08W31"
  53. #define SQLSTATE_DYNAMIC_MEMORY_EXHAUSTED          "08W26"
  54. #define SQLSTATE_NO_MEMORY                         "08W13"
  55. #define SQLSTATE_DATABASE_NAME_REQUIRED            "08W14"
  56. #define SQLSTATE_PROTOCOL_MISMATCH                 "08W15"
  57. #define SQLSTATE_ENGINE_ALREADY_RUNNING            "08W23"
  58. #define SQLSTATE_ENGINE_NOT_MULTIUSER              "08W16"
  59. #define SQLSTATE_INVALID_PARAMETER                 "08W24"
  60. #define SQLSTATE_PAGE_SIZE_TOO_BIG                 "08W22"
  61. #define SQLSTATE_PAGE_SIZE_INVALID                 "08W32"
  62. #define SQLSTATE_DATABASE_NOT_CREATED              "08W33"
  63. #define SQLSTATE_AUTHENTICATION_VIOLATION          "08W21"
  64. #define SQLSTATE_CONNECTIONS_DISABLED              "08W04"
  65. #define SQLSTATE_ENGINE_NOT_RUNNING                "08W01"
  66. #define SQLSTATE_NOT_CONNECTED                     "08003"
  67. #define SQLSTATE_TOO_MANY_CONNECTIONS              "08W03"
  68. #define SQLSTATE_INVALID_LOGON                     "28000"
  69. #define SQLSTATE_INVALID_PASSWORD                  "28000"
  70. #define SQLSTATE_INVALID_MODULE_LOGON              "28W01"
  71. #define SQLSTATE_UNABLE_TO_CONNECT                 "08001"
  72. #define SQLSTATE_CANNOT_OPEN_LOG                   "08W05"
  73. #define SQLSTATE_ERROR_WRITING_LOG                 "08W17"
  74. #define SQLSTATE_CONNECTION_NOT_FOUND              "08W02"
  75. #define SQLSTATE_STILL_ACTIVE_CONNECTIONS          "08W06"
  76. #define SQLSTATE_NAME_NOT_UNIQUE                   "52010"
  77. #define SQLSTATE_INDEX_NAME_NOT_UNIQUE             "52W04"
  78. #define SQLSTATE_EXISTING_PRIMARY_KEY              "55013"
  79. #define SQLSTATE_INVALID_FOREIGN_KEY_DEF           "53030"
  80. #define SQLSTATE_VIEW_DEFINITION_ERROR             "53011"
  81. #define SQLSTATE_MUST_DROP_INDEX                   "55W01"
  82. #define SQLSTATE_TABLE_MUST_BE_EMPTY               "55W02"
  83. #define SQLSTATE_PRIMARY_KEY_REFERENCED            "52W99"
  84. #define SQLSTATE_NO_PRIMARY_KEY                    "55008"
  85. #define SQLSTATE_PRIMARY_KEY_COLUMN_DEFINED        "52009"
  86. #define SQLSTATE_ALTER_CLAUSE_CONFLICT             "53W01"
  87. #define SQLSTATE_PRIMARY_KEY_TWICE                 "52W05"
  88. #define SQLSTATE_COLUMN_IN_INDEX                   "53W05"
  89. #define SQLSTATE_USER_OWNS_TABLES                  "55W03"
  90. #define SQLSTATE_IDENTIFIER_TOO_LONG               "54003"
  91. #define SQLSTATE_DUPLICATE_FOREIGN_KEY             "52W06"
  92. #define SQLSTATE_INDEX_NOT_FOUND                   "52W03"
  93. #define SQLSTATE_MESSAGE_ALREADY_EXISTS            "52W16"
  94. #define SQLSTATE_ALREADY_HAS_GRANT_PERMS           "42W01"
  95. #define SQLSTATE_PERMISSION_DENIED                 "42501"
  96. #define SQLSTATE_GROUP_CYCLE                       "42W02"
  97. #define SQLSTATE_NOT_A_GROUP                       "42W03"
  98. #define SQLSTATE_ALREADY_HAS_GROUP_MEMBERSHIP      "42W34"
  99. #define SQLSTATE_INVALID_STATEMENT                 "07W02"
  100. #define SQLSTATE_SYNTAX_ERROR                      "42W04"
  101. #define SQLSTATE_IQ_PATH_SYNTAX_ERROR              "42W48"
  102. #define SQLSTATE_STATEMENT_ERROR                   "26501"
  103. #define SQLSTATE_INVALID_STATEMENT_TYPE            "07W03"
  104. #define SQLSTATE_NOT_IMPLEMENTED                   "0A000"
  105. #define SQLSTATE_TSQL_FEATURE_NOT_SUPPORTED        "0AW02"
  106. #define SQLSTATE_LANGUAGE_EXTENSION                "0AW01"
  107. #define SQLSTATE_STMT_NOT_ALLOWED_IN_PASSTHROUGH   "0AW05"
  108. #define SQLSTATE_DBSPACE_NOT_FOUND                 "52W13"
  109. #define SQLSTATE_CORRELATION_NAME_AMBIGUOUS        "52012"
  110. #define SQLSTATE_UNKNOWN_USERID                    "08004"
  111. #define SQLSTATE_TABLE_NOT_FOUND                   "42W33"
  112. #define SQLSTATE_CORRELATION_NAME_NOT_FOUND        "52W02"
  113. #define SQLSTATE_COLUMN_NOT_FOUND                  "52003"
  114. #define SQLSTATE_COLUMN_AMBIGUOUS                  "52002"
  115. #define SQLSTATE_FOREIGN_KEY_NAME_NOT_FOUND        "52W07"
  116. #define SQLSTATE_CANNOT_JOIN                       "53W04"
  117. #define SQLSTATE_AMBIGUOUS_JOIN                    "52W08"
  118. #define SQLSTATE_OUTER_JOIN_CYCLE                  "52W14"
  119. #define SQLSTATE_CANNOT_OUTER_JOIN                 "52W19"
  120. #define SQLSTATE_CORRELATION_NAME_NEEDED           "52W15"
  121. #define SQLSTATE_UNKNOWN_FUNC                      "42W05"
  122. #define SQLSTATE_INVALID_GROUP_SELECT              "53003"
  123. #define SQLSTATE_AGGREGATES_NOT_ALLOWED            "42W06"
  124. #define SQLSTATE_SUBQUERY_SELECT_LIST              "53023"
  125. #define SQLSTATE_INVALID_ORDER                     "53005"
  126. #define SQLSTATE_INVALID_UNION                     "53026"
  127. #define SQLSTATE_MESSAGE_NOT_FOUND                 "52W17"
  128. #define SQLSTATE_USER_TYPE_NOT_FOUND               "52W18"
  129. #define SQLSTATE_USER_OWNS_MESSAGES_OR_DATATYPES   "55W05"
  130. #define SQLSTATE_WRONG_PARAMETER_COUNT             "37505"
  131. #define SQLSTATE_INVALID_PARAMETER_NAME            "42W47"
  132. #define SQLSTATE_VARIABLE_INVALID                  "42W07"
  133. #define SQLSTATE_EXPRESSION_ERROR                  "42W08"
  134. #define SQLSTATE_CONVERSION_ERROR                  "53018"
  135. #define SQLSTATE_OVERFLOW_ERROR                    "22003"
  136. #define SQLSTATE_INVALID_COLUMN_NUMBER             "42W13"
  137. #define SQLSTATE_DESCRIBE_NONSELECT                "07005"
  138. #define SQLSTATE_INVALID_DESCRIBE_TYPE             "07W01"
  139. #define SQLSTATE_CURSOR_NOT_DECLARED               "24W01"
  140. #define SQLSTATE_OPEN_CURSOR_ERROR                 "07003"
  141. #define SQLSTATE_CURSOR_ALREADY_OPEN               "24502"
  142. #define SQLSTATE_CURSOR_NOT_OPEN                   "24501"
  143. #define SQLSTATE_NO_INDICATOR                      "22002"
  144. #define SQLSTATE_SQLDA_TOO_SMALL                   "07002"
  145. #define SQLSTATE_PUT_CURSOR_ERROR                  "09W01"
  146. #define SQLSTATE_TOO_MANY_RECORDS                  "21000"
  147. #define SQLSTATE_SUBQUERY_RESULT_NOT_UNIQUE        "21W01"
  148. #define SQLSTATE_CURSOROP_NOT_ALLOWED              "09W02"
  149. #define SQLSTATE_NOT_ENOUGH_HOST_VARS              "07001"
  150. #define SQLSTATE_NOT_FOUND_IN_INDEX                "WI005"
  151. #define SQLSTATE_NON_UPDATEABLE_COLUMN             "53W02"
  152. #define SQLSTATE_CANNOT_MODIFY                     "42W32"
  153. #define SQLSTATE_NON_UPDATEABLE_VIEW               "42W31"
  154. #define SQLSTATE_PRIMARY_KEY_NOT_UNIQUE            "23W01"
  155. #define SQLSTATE_INVALID_FOREIGN_KEY               "23503"
  156. #define SQLSTATE_COLUMN_CANNOT_BE_NULL             "23502"
  157. #define SQLSTATE_INDEX_NOT_UNIQUE                  "23505"
  158. #define SQLSTATE_NO_CURRENT_ROW                    "24503"
  159. #define SQLSTATE_PRIMARY_KEY_VALUE_REF             "23W05"
  160. #define SQLSTATE_ONLY_ONE_TABLE                    "09W04"
  161. #define SQLSTATE_INVALID_COLUMN_VALUE              "23506"
  162. #define SQLSTATE_ROW_UPDATED_SINCE_READ            "22W02"
  163. #define SQLSTATE_WRONG_NUM_OF_INSERT_COLS          "53002"
  164. #define SQLSTATE_PRIMARY_KEY_MULTI_ROW_UPDATE      "21502"
  165. #define SQLSTATE_PRIMARY_KEY_CURSOR_UPDATE         "56013"
  166. #define SQLSTATE_DELETE_SUBQUERY_SAME_TABLE        "56014"
  167. #define SQLSTATE_CURSOR_DELETE_SELF_REF            "09X02"
  168. #define SQLSTATE_INSERT_SELF_REFERENCING           "21501"
  169. #define SQLSTATE_VARIABLE_NOT_FOUND                "42W14"
  170. #define SQLSTATE_VARIABLE_EXISTS                   "42W15"
  171. #define SQLSTATE_LABEL_NOT_FOUND                   "42W24"
  172. #define SQLSTATE_INVALID_FETCH_POSITION            "42W25"
  173. #define SQLSTATE_WRONG_NUM_OF_FETCH_VARIABLES      "42W26"
  174. #define SQLSTATE_PROCEDURE_NOT_FOUND               "52W09"
  175. #define SQLSTATE_OLD_DBINIT                        "42W27"
  176. #define SQLSTATE_ATOMIC_OPERATION                  "42W28"
  177. #define SQLSTATE_TRIGGER_NOT_FOUND                 "52W10"
  178. #define SQLSTATE_COLUMN_IN_TRIGGER                 "53W06"
  179. #define SQLSTATE_USER_OWNS_PROCEDURES              "55W04"
  180. #define SQLSTATE_TRIGGER_DEFN_CONFLICT             "52W11"
  181. #define SQLSTATE_INVALID_TRIGGER_COL_REFS          "52W12"
  182. #define SQLSTATE_INVALID_TRIGGER_STATEMENT         "2D501"
  183. #define SQLSTATE_NESTING_TOO_DEEP                  "42W29"
  184. #define SQLSTATE_PROCEDURES_NOT_IN_DESKTOP         "0AW04"
  185. #define SQLSTATE_PUBLICATION_NOT_FOUND             "5RW01"
  186. #define SQLSTATE_TABLE_HAS_PUBLICATIONS            "5RW02"
  187. #define SQLSTATE_SUBSCRIPTION_NOT_UNIQUE           "5RW03"
  188. #define SQLSTATE_SUBSCRIPTION_NOT_FOUND            "5RW04"
  189. #define SQLSTATE_ONLY_ONE_PUBLISHER                "5RW05"
  190. #define SQLSTATE_NOT_REMOTE_USER                   "5RW06"
  191. #define SQLSTATE_NOT_REMOTE_TYPE                   "5RW07"
  192. #define SQLSTATE_PASSTHROUGH_INCONSISTENT          "5RW08"
  193. #define SQLSTATE_REMOTE_STATEMENT_FAILED           "5RW09"
  194. #define SQLSTATE_CANNOT_UNIQUELY_IDENTIFY_ROWS     "09W05"
  195. #define SQLSTATE_ERROR_NUMBER_OUT_OF_RANGE         "53W07"
  196. #define SQLSTATE_INVALID_FORMAT_STRING_ARG_NUM     "53W08"
  197. #define SQLSTATE_INVALID_OPTION                    "42W16"
  198. #define SQLSTATE_INVALID_OPTION_SETTING            "42W17"
  199. #define SQLSTATE_LOCKED                            "42W18"
  200. #define SQLSTATE_MUST_BE_ONLY_CONNECTION           "42W19"
  201. #define SQLSTATE_CHECKPOINT_REQUIRES_UNDO          "42W20"
  202. #define SQLSTATE_TABLE_IN_USE                      "42W21"
  203. #define SQLSTATE_PROCEDURE_IN_USE                  "42W23"
  204. #define SQLSTATE_SAVEPOINT_NOTFOUND                "3B001"
  205. #define SQLSTATE_ROLLBACK_NOT_ALLOWED              "3B002"
  206. #define SQLSTATE_RESULT_NOT_ALLOWED                "3BW02"
  207. #define SQLSTATE_SAVEPOINTS_REQUIRE_UNDO           "3BW01"
  208. #define SQLSTATE_PP_DBLIB_MISMATCH                 "08W18"
  209. #define SQLSTATE_DBLIB_ENGINE_MISMATCH             "08W19"
  210. #define SQLSTATE_SERVER_ENGINE_MISMATCH            "08W20"
  211. #define SQLSTATE_UNKNOWN_BACKUP_OPERATION          "WB001"
  212. #define SQLSTATE_BACKUP_NOT_STARTED                "WB002"
  213. #define SQLSTATE_BACKUP_CANNOT_RENAME_LOG_YET      "WB003"
  214. #define SQLSTATE_BACKUP_UNABLE_TO_DELETE_FILE      "WB004"
  215. #define SQLSTATE_LOG_TRUNCATED                     "WB005"
  216. #define SQLSTATE_USER_DEFINED_EXCEPTION            "99999"
  217. #define SQLSTATE_DOUBLE_REQUEST                    "42W22"
  218. #define SQLSTATE_INTERRUPTED                       "57014"
  219. #define SQLSTATE_ERROR                             "40000"
  220. #define SQLSTATE_DATABASE_ERROR                    "40W01"
  221. #define SQLSTATE_TERMINATED_BY_USER                "40W02"
  222. #define SQLSTATE_DEVICE_FULL                       "40W03"
  223. #define SQLSTATE_DEVICE_ERROR                      "40W04"
  224. #define SQLSTATE_DEADLOCK                          "40001"
  225. #define SQLSTATE_THREAD_DEADLOCK                   "40W06"
  226. #define SQLSTATE_CONNECTION_TERMINATED             "40W07"
  227. #define SQLSTATE_HLI_BAD_SYNTAX                    "42W11"
  228. #define SQLSTATE_HLI_BAD_CURSOR                    "34W01"
  229. #define SQLSTATE_HLI_BAD_STATEMENT                 "26W01"
  230. #define SQLSTATE_HLI_BAD_HOST_VAR_NAME             "42W09"
  231. #define SQLSTATE_HLI_BAD_HOST_VAR_VALUE            "42W10"
  232. #define SQLSTATE_HLI_BAD_CALLBACK                  "42W12"
  233. #define SQLSTATE_HLI_INTERNAL                      "WI007"
  234. #define SQLSTATE_HLI_BAD_ARGUMENT                  "22W01"
  235. #define SQLSTATE_BEYOND_EOF                        "WI001"
  236. #define SQLSTATE_PHANTOM                           "WI002"
  237. #define SQLSTATE_UNBLOCKED                         "WI003"
  238. #define SQLSTATE_LOG_CORRUPTED                     "WI004"
  239. #define SQLSTATE_UNSUPPORTED_LOAD_FORMAT           "WL001"
  240. #define SQLSTATE_CANNOT_ACCESS_FILE                "WL002"
  241. #define SQLSTATE_COLUMN_VALUE_TOO_LONG             "WL003"
  242. #define SQLSTATE_CANNOT_UNLOAD_A_VIEW              "WL004"
  243. #define SQLSTATE_DBSPACE_FULL                      "04W07"
  244. #define SQLSTATE_ACCESS_BEYOND_END_OF_MAX_DBSPACE  "04W08"
  245. #define SQLSTATE_PATTERN_TOO_LONG                  "WW001"
  246. #define SQLSTATE_CANNOT_STOP_SERVER                "WW002"
  247. #define SQLSTATE_INVALID_TEXTPTR_VALUE             "22W03"
  248. #define SQLSTATE_INVALID_TEXT_IMAGE_DATATYPE       "53W09"
  249. #define SQLSTATE_TOO_MANY_COLUMNS_IN_TABLE         "52W20"
  250. #define SQLSTATE_EXTERNAL_CALLS_NOT_SUPPORTED      "WW003"
  251. #define SQLSTATE_EXTERNAL_PLATFORM_FAILURE         "WW004"
  252. #define SQLSTATE_REQUIRE_DLL_NAME                  "WW005"
  253. #define SQLSTATE_COULD_NOT_LOAD_LIBRARY            "WW006"
  254. #define SQLSTATE_COULD_NOT_FIND_FUNCTION           "WW007"
  255. #define SQLSTATE_ERROR_CALLING_FUNCTION            "WW008"
  256. #define SQLSTATE_DDL_NOT_ALLOWED_IN_PROCEDURES     "52W21"
  257. #define SQLSTATE_DATATYPE_NOT_ALLOWED              "WW009"
  258. #define SQLSTATE_TOO_MANY_PARAMETERS               "WW010"
  259. #define SQLSTATE_THREAD_START_FAILURE              "WW011"
  260. #define SQLSTATE_INVALID_SYNTAX_EXTENSION          "0AW03"
  261. #define SQLSTATE_DIV_ZERO_ERROR                    "22012"
  262. #define SQLSTATE_INVALID_ESCAPE_CHAR               "22019"
  263. #define SQLSTATE_INVALID_ESCAPE_SEQ                "22025"
  264. #define SQLSTATE_RAISERROR_STMT                    "WW012"
  265. #define SQLSTATE_WITH_CHECK_OPTION_VIOLATION       "44000"
  266. #define SQLSTATE_READ_ONLY_CURSOR                  "42W30"
  267. #define SQLSTATE_UNTERMINATED_C_STR                "22024"
  268. #define SQLSTATE_SYNTAX_EXTENSION_WARNING          "01W07"
  269. #define SQLSTATE_CURSOR_OPERATION_CONFLICT         "01001"
  270. #define SQLSTATE_NO_COLUMN_PERMS_FOR_VIEWS         "52W22"
  271. #define SQLSTATE_NULL_VALUE_ELIMINATED             "01003"
  272. #define SQLSTATE_DUPLICATE_REFERENCING_COLUMN      "42W40"
  273. #define SQLSTATE_DUPLICATE_INSERT_COLUMN           "42W41"
  274. #define SQLSTATE_STRING_RIGHT_TRUNCATION           "22001"
  275. #define SQLSTATE_PARAMETER_NAME_MISSING            "42W42"
  276. #define SQLSTATE_INVALID_DESCRIPTOR_INDEX          "07009"
  277. #define SQLSTATE_ERROR_IN_ASSIGNMENT               "22005"
  278. #define SQLSTATE_INVALID_DESCRIPTOR_NAME           "33000"
  279. #define SQLSTATE_BACKUP_PAGE_INCOMPLETE            "01W10"
  280. #define SQLSTATE_NO_DESCRIPTOR_DATA                "02W01"
  281. #define SQLSTATE_NOT_PUBLIC_ID                     "42W43"
  282. #define SQLSTATE_MORE_INFO                         "01W09"
  283. #define SQLSTATE_TOO_MANY_COLUMNS_DELETED          "42W44"
  284. #define SQLSTATE_TEMPORARY_NOT_ALLOWED             "42W45"
  285. #define SQLSTATE_INVALID_OPTION_ON_CONNECT         "01W11"
  286. #define SQLSTATE_OPTION_REQUIRES_DBA               "42W46"
  287. #define SQLSTATE_INVALID_STANDARD_LOGON            "28W02"
  288. #define SQLSTATE_INVALID_INTEGRATED_LOGON          "28W03"
  289. #define SQLSTATE_INTEGRATED_LOGON_FAILED           "28W04"
  290. #define SQLSTATE_PREEMPTED                         "WI006"
  291. #define SQLSTATE_RETRY                             "WI008"
  292. #define SQLSTATE_INTEGRATED_LOGON_UNSUPPORTED      "28W05"
  293. #define SQLSTATE_INTEGRATED_LOGON_GUESTMAP         "28W06"
  294. #define SQLSTATE_INTEGRATED_LOGON_SYSMAP           "28W07"
  295. #define SQLSTATE_INTEGRATED_LOGON_MAPPED           "28W08"
  296. #define SQLSTATE_INTEGRATED_LOGON_UNMAPPED         "28W09"
  297. #define SQLSTATE_ARGUMENT_CANNOT_BE_NULL           "WP000"
  298. #define SQLSTATE_UNHANDLED_JAVA_EXCEPTION          "WP001"
  299. #define SQLSTATE_BAD_CLASS_FILE                    "WP002"
  300. #define SQLSTATE_STORE_NOT_LOADED                  "08W34"
  301. #define SQLSTATE_STORE_ENTRY_NOT_FOUND             "08W35"
  302. #define SQLSTATE_STORE_VERSION_MISMATCH            "08W47"
  303. #define SQLSTATE_INVALID_DBSPACE_FOR_CREATE        "08W36"
  304. #define SQLSTATE_FIELD_NOT_FOUND                   "WW013"
  305. #define SQLSTATE_INVALID_FIELD_REFERENCE           "WW014"
  306. #define SQLSTATE_FIELD_CANNOT_BE_NULL              "WW015"
  307. #define SQLSTATE_INVALID_INDEX_TYPE                "WW016"
  308. #define SQLSTATE_DROP_DATABASE_FAILED              "WW017"
  309. #define SQLSTATE_CANNOT_DECOMPRESS_CLASS           "WP003"
  310. #define SQLSTATE_CLASS_MEMBER_OF_JAR               "WP004"
  311. #define SQLSTATE_NO_PROFILE_FILE                   "08W37"
  312. #define SQLSTATE_GEN_PARSE_ERROR                   "08W38"
  313. #define SQLSTATE_OMNI_CONNECT_ERROR                "WO001"
  314. #define SQLSTATE_OMNI_NO_RMT_OBJ                   "WO002"
  315. #define SQLSTATE_OMNI_READONLY                     "WO003"
  316. #define SQLSTATE_OMNI_SERVER_NOT_FOUND             "WO004"
  317. #define SQLSTATE_OMNI_REMOTE_ERROR                 "WO005"
  318. #define SQLSTATE_OMNI_BACKWARDS_CURSOR             "WO006"
  319. #define SQLSTATE_JAVA_SERIALIZATION_ERROR          "WI009"
  320. #define SQLSTATE_JAVA_DESERIALIZATION_ERROR        "WW018"
  321. #define SQLSTATE_DATABASE_ACTIVE                   "08W40"
  322. #define SQLSTATE_DATABASE_NEEDS_RECOVERY           "08W41"
  323. #define SQLSTATE_OMNI_RMT_TABLE_NOTFOUND           "WO007"
  324. #define SQLSTATE_OMNI_RMT_COLUMNS_NOTFOUND         "WO008"
  325. #define SQLSTATE_NO_SCROLL_CURSOR                  "09W06"
  326. #define SQLSTATE_METHOD_CANNOT_BE_CALLED           "WJ001"
  327. #define SQLSTATE_BAD_CLASS_BYTE_CODE               "WP005"
  328. #define SQLSTATE_PARAM_NOT_REGISTERED              "WJ002"
  329. #define SQLSTATE_DATABASE_UPGRADE_FAILED           "08W42"
  330. #define SQLSTATE_DATABASE_UPGRADE_NOT_POSSIBLE     "08W43"
  331. #define SQLSTATE_INVALID_CURSOR_RANGE              "09W07"
  332. #define SQLSTATE_JAVA_VM_NOT_STARTED               "WP006"
  333. #define SQLSTATE_NO_COLUMN_NAME                    "52004"
  334. #define SQLSTATE_INVALID_TRANSACTION_ISOLATION     "WJ003"
  335. #define SQLSTATE_TABLE_HAS_REFACTION               "56001"
  336. #define SQLSTATE_AMBIGUOUS_INDEX_NAME              "52W40"
  337. #define SQLSTATE_OMNI_MEMORY_CONFIG                "WO009"
  338. #define SQLSTATE_INVALID_TSQL_OJ_EXPRESSION        "52W23"
  339. #define SQLSTATE_INVALID_TSQL_JOIN_TYPE            "52W24"
  340. #define SQLSTATE_OMNI_DEBUG                        "WO010"
  341. #define SQLSTATE_NAMESPACE_HEAP_EXHAUSTED          "WP007"
  342. #define SQLSTATE_JAVA_VM_HEAP_EXHAUSTED            "WP008"
  343. #define SQLSTATE_DUPLICATE_CURSOR_NAME             "WJ004"
  344. #define SQLSTATE_ROLLBACK_ON_PREFETCH              "WW019"
  345. #define SQLSTATE_RESOURCE_GOVERNOR_EXCEEDED        "WP009"
  346. #define SQLSTATE_STATIC_REF_TO_NONSTATIC_VAR       "WW020"
  347. #define SQLSTATE_UNSUPPORTED_CHARACTER_SET         "WW021"
  348. #define SQLSTATE_BAD_PARAM_INDEX                   "WJ005"
  349. #define SQLSTATE_RETVAL_CANNOT_BE_SET              "WJ006"
  350. #define SQLSTATE_BACKUP_NOT_LOADED                 "08W44"
  351. #define SQLSTATE_BACKUP_ENTRY_NOT_FOUND            "08W45"
  352. #define SQLSTATE_UNSUPPORTED_JDBC_FEATURE          "WJ007"
  353. #define SQLSTATE_CANNOT_CHANGE_OPENED_STATEMENT    "WJ008"
  354. #define SQLSTATE_JDBC_OBJ_INTERNAL_ERR             "WJ009"
  355. #define SQLSTATE_JDBC_OBJ_CLOSED                   "WJ010"
  356. #define SQLSTATE_BACKUP_ERROR                      "08W46"
  357. #define SQLSTATE_CANNOT_UPDATE_FINAL_FIELD         "WJ012"
  358. #define SQLSTATE_SQLDA_INCONSISTENT                "07W04"
  359. #define SQLSTATE_CANNOT_ACCESS_INSTANCE_MEMBER     "WJ011"
  360. #define SQLSTATE_CANNOT_TRUNCATE_VIEW              "42W49"
  361. #define SQLSTATE_CANNOT_INDEX_ON_JAVA_CLASS        "WW022"
  362. #define SQLSTATE_COMPUTED_COLUMN_WRITE_ATTEMPTED   "WW023"
  363. #define SQLSTATE_PROCEDURE_RETURNS_VOID            "53019"
  364. #define SQLSTATE_TEXT_OPERATION_ON_VIEW            "42W50"
  365. #define SQLSTATE_COMPUTED_COLUMNS_NOT_SUPPORTED    "0AW06"
  366. #define SQLSTATE_INVALID_COMPARISON                "52W25"
  367. #endif
  368.