와이즈 토토서버가 할당됩니다 SQL 표준을 따르는 5 자 와이즈 토토 코드 컨벤션"Sqlstate"코드. 어떤 오류 조건이 발생했는지 알아야하는 응용 프로그램 일반적으로 보는 대신 와이즈 토토 코드를 테스트해야합니다. 텍스트 오류 메시지. 와이즈 토토 코드는 변경 될 가능성이 적습니다 가로질러와이즈 토토릴리스 및 또한 오류의 국소화로 인해 변경 될 수 없습니다. 메시지. 와이즈 토토 코드 중 일부는 아니지만 제작와이즈 토토SQL 표준에 의해 정의 된; 몇 가지 추가 와이즈 토토 코드 표준에 의해 정의되지 않은 조건이 발명되었거나 다른 데이터베이스에서 빌린다.
표준에 따르면, 처음 두 문자 와이즈 토토 코드는 오류 클래스를 나타내고 마지막 3 개는 오류 클래스를 나타냅니다. 문자는 해당 클래스 내에서 특정 조건을 나타냅니다. 따라서, 특정 와이즈 토토 코드를 인식하지 못하는 응용 프로그램 오류 클래스에서 무엇을 해야하는지 여전히 추론 할 수 있습니다.
표 A-1정의 된 모든 와이즈 토토 코드 나열와이즈 토토9.1.24. (일부는 실제로 아닙니다 현재 사용되지만 SQL 표준에 의해 정의됩니다.) 오류 수업도 표시됩니다. 각 오류 클래스마다가 있습니다."표준"마지막이있는 와이즈 토토 코드 세 문자000. 이 코드가 사용됩니다 클래스 내에 속하지만 그렇지 않은 와이즈 토토 조건에 대해서만 더 많은 특정 코드가 할당되어 있습니다.
열에 표시된 기호"조건 이름"pl/pgsql. 조건 이름을 작성할 수 있습니다 상류 또는 소문자. (pl/pgsql경고를 인식하지 못합니다 와이즈 토토, 조건 이름에 반대; 그것들은 00, 01 클래스입니다 02.)
표 A-1.와이즈 토토와이즈 토토 코드
와이즈 토토 코드 | 조건 이름 |
---|---|
클래스 00 - 성공적인 완료 | |
00000 | success_completion |
클래스 01 - 경고 | |
01000 | 경고 |
0100C | dynamic_result_sets_returned |
01008 | implicit_zero_bit_padding |
01003 | null_value_eliminated_in_set_function |
01007 | Privilege_not_granted |
01006 | Privilege_NOT_REVOKED |
01004 | String_data_right_truncation |
01P01 | wamberated_feature |
클래스 02 - 데이터가 없습니다 (이것은 SQL에 따라 경고 클래스이기도합니다. 기준) | |
02000 | no_data |
02001 | no_additional_dynamic_result_sets_returned |
클래스 03 - SQL 명세서 아직 완료되지 않음 | |
03000 | sql_statement_not_yet_complete |
클래스 08 - 연결 예외 | |
08000 | Connection_Exception |
08003 | Connection_does_NOT_EXIST |
08006 | Connection_Failure |
08001 | SQLCLIENT_UNABLE_TO_STABLISH_SQLCONNECTION |
08004 | sqlserver_rejected_establishment_of_sqlconnection |
08007 | Transaction_Resolution_unkNown |
08p01 | Protocol_violation |
클래스 09 - 트리거 된 동작 예외 | |
09000 | Triggered_Action_Exception |
클래스 0A - 지원되지 않는 기능 | |
0A000 | feaction_not_supported |
클래스 0B - 잘못된 트랜잭션 시작 | |
0B000 | invalid_transaction_initiation |
클래스 0F - 로케이터 예외 | |
0f000 | locator_exception |
0F001 | invalid_locator_specification |
클래스 0L - 잘못된 부여자 | |
0L000 | invalid_grantor |
0LP01 | invalid_grant_operation |
클래스 0p - 잘못된 역할 사양 | |
0p000 | invalid_role_specification |
클래스 20 - 사례를 찾을 수 없습니다 | |
20000 | case_not_found |
클래스 21 - 추기경 위반 | |
21000 | Cardinality_violation |
클래스 22 - 데이터 예외 | |
22000 | data_exception |
2202E | array_subscript_error |
22021 | 문자 _not_in_repertoire |
22008 | dateTime_field_overflow |
22012 | division_by_zero |
22005 | ERROR_IN_ASSIGNMENT |
2200B | Escape_character_conflict |
22022 | indicator_overflow |
22015 | interval_field_overflow |
2201E | invalid_argument_for_logarithm |
22014 | invalid_argument_for_ntile_function |
22016 | invalid_argument_for_nth_value_function |
2201F | invalid_argument_for_power_function |
2201G | invalid_argument_for_width_bucket_function |
22018 | invalid_character_value_for_cast |
22007 | invalid_datetime_format |
22019 | invalid_escape_character |
2200d | invalid_escape_octet |
22025 | invalid_escape_sequence |
22P06 | nonstandard_use_of_escape_character |
22010 | invalid_indicator_parameter_value |
22023 | invalid_parameter_value |
2201B | invalid_regular_expression |
2201W | invalid_row_count_in_limit_clause |
2201X | invalid_row_count_in_result_offset_clause |
22009 | invalid_time_zone_displacement_value |
2200c | invalid_use_of_escape_character |
2200g | most_specific_type_mistatch |
22004 | null_value_not_allowed |
22002 | null_value_no_indicator_parameter |
22003 | numeric_value_out_of_range |
22026 | String_data_length_mistatch |
22001 | String_data_right_truncation |
22011 | substring_error |
22027 | trim_error |
22024 | Unterminated_c_string |
2200f | Zero_length_character_string |
22P01 | floating_point_exception |
22P02 | invalid_text_representation |
22P03 | invalid_binary_representation |
22P04 | bad_copy_file_format |
22P05 | underlatable_character |
2200L | not_an_xml_document |
2200m | invalid_xml_document |
2200n | invalid_xml_content |
2200S | invalid_xml_comment |
2200t | invalid_xml_processing_instruction |
클래스 23 - 무결성 제약 위반 | |
23000 | Integrity_Constraint_Violation |
23001 | 제한 _violation |
23502 | not_null_violation |
23503 | forex_key_violation |
23505 | 고유 _violation |
23514 | check_violation |
23p01 | 제외 _violation |
클래스 24 - 잘못된 커서 스테이트 | |
24000 | invalid_cursor_state |
클래스 25 - 잘못된 트랜잭션 상태 | |
25000 | invalid_transaction_state |
25001 | active_sql_transaction |
25002 | branch_transaction_already_active |
25008 | held_cursor_requires_same_isolation_level |
25003 | inupript_access_mode_for_branch_transaction |
25004 | inepript_isolation_level_for_branch_transaction |
25005 | no_active_sql_transaction_for_branch_transaction |
25006 | read_only_sql_transaction |
25007 | schema_and_data_statement_mixing_not_supported |
25p01 | no_active_sql_transaction |
25p02 | in_failed_sql_transaction |
클래스 26 - 유효하지 않은 SQL 문 이름 | |
26000 | invalid_sql_statement_name |
클래스 27 - 트리거 된 데이터 변경 위반 | |
27000 | triggered_data_change_violation |
클래스 28 - 잘못된 승인 사양 | |
28000 | invalid_authorization_specification |
28p01 | invalid_password |
클래스 2B - 종속 권한 설명자가 여전히 존재합니다 | |
2B000 | fexend_privilege_descriptors_still_exist |
2BP01 | fectionent_objects_still_exist |
클래스 2D - 잘못된 거래 종료 | |
2d000 | invalid_transaction_termination |
클래스 2F - SQL 일상 예외 | |
2F000 | sql_routine_exception |
2F005 | function_executed_no_return_statement |
2F002 | modifying_sql_data_not_permitted |
2F003 | prohibed_sql_statement_attempted |
2F004 | reading_sql_data_not_permitted |
클래스 34 - 잘못된 커서 이름 | |
34000 | invalid_cursor_name |
클래스 38 - 외부 일상 예외 | |
38000 | external_routine_exception |
38001 | containing_sql_not_permitted |
38002 | modifying_sql_data_not_permitted |
38003 | prohibed_sql_statement_attempted |
38004 | reading_sql_data_not_permitted |
클래스 39 - 외부 루틴 호출 예외 | |
39000 | external_routine_invocation_exception |
39001 | invalid_sqlstate_returned |
39004 | null_value_not_allowed |
39p01 | trigger_protocol_violated |
39p02 | SRF_PROTOCOL_VIOLATED |
클래스 3B - SavePoint Exception | |
3B000 | SavePoint_Exception |
3B001 | invalid_savepoint_specification |
클래스 3D - 잘못된 카탈로그 이름 | |
3D000 | invalid_catalog_name |
클래스 3F - 잘못된 스키마 이름 | |
3F000 | invalid_schema_name |
클래스 40 - 거래 롤백 | |
40000 | Transaction_Rollback |
40002 | Transaction_Integrity_constraint_violation |
40001 | Serialization_Failure |
40003 | state_completion_unknown |
40p01 | Deadlock_Detected |
클래스 42 - 구문 와이즈 토토 또는 액세스 규칙 위반 | |
42000 | syntax_error_or_access_rule_violation |
42601 | syntax_error |
42501 | Insufficiled_privilege |
42846 | CALE_COERCE |
42803 | Grouping_error |
42p20 | Windowing_error |
42P19 | invalid_recursion |
42830 | invalid_foreign_key |
42602 | invalid_name |
42622 | name_too_long |
42939 | Reserved_name |
42804 | DataType_Mistatch |
42p18 | Insterminate_Datatype |
42p21 | collation_mistatch |
42p22 | Insterminate_Collation |
42809 | 잘못 _object_type |
42703 | undefined_column |
42883 | undefined_function |
42p01 | undefined_table |
42p02 | undefined_parameter |
42704 | undefined_object |
42701 | duplical_column |
42p03 | duplical_cursor |
42P04 | duplical_database |
42723 | duplical_function |
42p05 | duplical_prepared_statement |
42p06 | duplic_schema |
42p07 | duplical_table |
42712 | duplice_alias |
42710 | duplical_object |
42702 | Ambiguous_Column |
42725 | Ambiguous_Function |
42p08 | Ambiguous_Parameter |
42p09 | Ambiguous_alias |
42p10 | invalid_column_reference |
42611 | invalid_column_definition |
42p11 | invalid_cursor_definition |
42p12 | invalid_database_definition |
42p13 | invalid_function_definition |
42p14 | invalid_prepared_statement_definition |
42p15 | invalid_schema_definition |
42p16 | invalid_table_definition |
42p17 | invalid_object_definition |
클래스 44 - 점검 옵션 위반 | |
44000 | with_check_option_violation |
클래스 53 - 자원이 충분하지 않음 | |
53000 | Insufficile _resources |
53100 | disk_full |
53200 | out_of_memory |
53300 | TOO_MANY_CONNECTION |
클래스 54 - 프로그램 제한 초과 | |
54000 | program_limit_execeeded |
54001 | station_too_complex |
54011 | TOO_MANY_COLUMNS |
54023 | Too_Many_arguments |
클래스 55 - 전제 조건 상태가 아닌 개체 | |
55000 | object_not_in_perrequisite_state |
55006 | Object_in_use |
55p02 | cant_change_runtime_param |
55p03 | lock_not_available |
클래스 57 - 운영자 중재 | |
57000 | Operator_Intervention |
57014 | query_canceled |
57p01 | admin_shutdown |
57p02 | Crash_Shutdown |
57p03 | CANL_CONNECT_NOW |
57p04 | database_dropped |
클래스 58 - 시스템 와이즈 토토 (외부의 와이즈 토토와이즈 토토자체) | |
58030 | io_error |
58p01 | undefined_file |
58p02 | duplical_file |
클래스 F0 - 구성 파일 와이즈 토토 | |
F0000 | config_file_error |
F0001 | lock_file_exists |
클래스 HV - 외국 데이터 포장지 와이즈 토토 (SQL/MED) | |
HV000 | fdw_error |
HV005 | FDW_COLUMN_NAME_NOT_FOUND |
HV002 | FDW_DYNAMIC_PARAMETER_VALUE_NEEDED |
HV010 | FDW_FUNCTION_SEMARENTEROR |
HV021 | fdw_inconsistent_descriptor_information |
HV024 | FDW_INVALID_ATTRIBITE_VALUE |
HV007 | FDW_INVALID_COLUMN_NAME |
HV008 | FDW_INVALID_COLUMN_NUMBER |
HV004 | FDW_INVALID_DATA_TYPE |
HV006 | FDW_INVALID_DATA_TYPE_DESCRIPTORS |
HV091 | fdw_invalid_descriptor_field_identifier |
HV00B | FDW_INVALID_HANDLE |
HV00C | FDW_INVALID_OPTION_INDEX |
HV00D | FDW_INVALID_OPTION_NAME |
HV090 | fdw_invalid_string_length_or_buffer_length |
HV00A | fdw_invalid_string_format |
HV009 | fdw_invalid_use_of_null_pointer |
HV014 | FDW_TOO_MANY_HANDLES |
HV001 | fdw_out_of_memory |
HV00P | FDW_NO_SCHEMAS |
HV00J | fdw_option_name_not_found |
HV00K | fdw_reply_handle |
HV00Q | FDW_SCHEMA_NOT_FOUND |
HV00R | fdw_table_not_found |
HV00L | fdw_unable_to_create_execution |
HV00M | fdw_unable_to_create_reply |
HV00N | FDW_UNABLE_TO_SESTABLISH_CONNECTION |
클래스 P0 - PL/PGSQL 와이즈 토토 | |
P0000 | plpgsql_error |
P0001 | REAS_EXCEPTION |
P0002 | no_data_found |
P0003 | TOO_MANY_ROWS |
클래스 XX - 내부 와이즈 토토 | |
xx000 | 내부_error |
xx001 | data_corrupted |
XX002 | index_corrupted |