pg_async
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Enumerations | Functions
tip::db::pg::sqlstate Namespace Reference

Enumerations

enum  code {
  unknown_code, successful_completion, warning, dynamic_result_sets_returned,
  implicit_zero_bit_padding, null_value_eliminated_in_set_function, privilege_not_granted, privilege_not_revoked,
  string_data_right_truncation, deprecated_feature, no_data, no_additional_dynamic_result_sets_returned,
  sql_statement_not_yet_complete, connection_exception, connection_does_not_exist, connection_failure,
  sqlclient_unable_to_establish_sqlconnection, sqlserver_rejected_establishment_of_sqlconnection, transaction_resolution_unknown, protocol_violation,
  triggered_action_exception, feature_not_supported, invalid_transaction_initiation, locator_exception,
  invalid_locator_specification, invalid_grantor, invalid_grant_operation, invalid_role_specification,
  diagnostics_exception, stacked_diagnostics_accessed_without_active_handler, case_not_found, cardinality_violation,
  data_exception, array_subscript_error, character_not_in_repertoire, datetime_field_overflow,
  division_by_zero, error_in_assignment, escape_character_conflict, indicator_overflow,
  interval_field_overflow, invalid_argument_for_logarithm, invalid_argument_for_ntile_function, invalid_argument_for_nth_value_function,
  invalid_argument_for_power_function, invalid_argument_for_width_bucket_function, invalid_character_value_for_cast, invalid_datetime_format,
  invalid_escape_character, invalid_escape_octet, invalid_escape_sequence, nonstandard_use_of_escape_character,
  invalid_indicator_parameter_value, invalid_parameter_value, invalid_regular_expression, invalid_row_count_in_limit_clause,
  invalid_row_count_in_result_offset_clause, invalid_time_zone_displacement_value, invalid_use_of_escape_character, most_specific_type_mismatch,
  null_value_not_allowed, null_value_no_indicator_parameter, numeric_value_out_of_range, string_data_length_mismatch,
  substring_error, trim_error, unterminated_c_string, zero_length_character_string,
  floating_point_exception, invalid_text_representation, invalid_binary_representation, bad_copy_file_format,
  untranslatable_character, not_an_xml_document, invalid_xml_document, invalid_xml_content,
  invalid_xml_comment, invalid_xml_processing_instruction, integrity_constraint_violation, restrict_violation,
  not_null_violation, foreign_key_violation, unique_violation, check_violation,
  exclusion_violation, invalid_cursor_state, invalid_transaction_state, active_sql_transaction,
  branch_transaction_already_active, held_cursor_requires_same_isolation_level, inappropriate_access_mode_for_branch_transaction, inappropriate_isolation_level_for_branch_transaction,
  no_active_sql_transaction_for_branch_transaction, read_only_sql_transaction, schema_and_data_statement_mixing_not_supported, no_active_sql_transaction,
  in_failed_sql_transaction, invalid_sql_statement_name, triggered_data_change_violation, invalid_authorization_specification,
  invalid_password, dependent_privilege_descriptors_still_exist, dependent_objects_still_exist, invalid_transaction_termination,
  sql_routine_exception, function_executed_no_return_statement, modifying_sql_data_not_permitted, prohibited_sql_statement_attempted,
  reading_sql_data_not_permitted, invalid_cursor_name, external_routine_exception, containing_sql_not_permitted,
  external_routine_invocation_exception, invalid_sqlstate_returned, trigger_protocol_violated, srf_protocol_violated,
  savepoint_exception, invalid_savepoint_specification, invalid_catalog_name, invalid_schema_name,
  transaction_rollback, transaction_integrity_constraint_violation, serialization_failure, statement_completion_unknown,
  deadlock_detected, syntax_error_or_access_rule_violation, syntax_error, insufficient_privilege,
  cannot_coerce, grouping_error, windowing_error, invalid_recursion,
  invalid_foreign_key, invalid_name, name_too_long, reserved_name,
  datatype_mismatch, indeterminate_datatype, collation_mismatch, indeterminate_collation,
  wrong_object_type, undefined_column, undefined_function, undefined_table,
  undefined_parameter, undefined_object, duplicate_column, duplicate_cursor,
  duplicate_database, duplicate_function, duplicate_prepared_statement, duplicate_schema,
  duplicate_table, duplicate_alias, duplicate_object, ambiguous_column,
  ambiguous_function, ambiguous_parameter, ambiguous_alias, invalid_column_reference,
  invalid_column_definition, invalid_cursor_definition, invalid_database_definition, invalid_function_definition,
  invalid_prepared_statement_definition, invalid_schema_definition, invalid_table_definition, invalid_object_definition,
  with_check_option_violation, insufficient_resources, disk_full, out_of_memory,
  too_many_connections, configuration_limit_exceeded, program_limit_exceeded, statement_too_complex,
  too_many_columns, too_many_arguments, object_not_in_prerequisite_state, object_in_use,
  cant_change_runtime_param, lock_not_available, operator_intervention, query_canceled,
  admin_shutdown, crash_shutdown, cannot_connect_now, database_dropped,
  system_error, io_error, undefined_file, duplicate_file,
  config_file_error, lock_file_exists, fdw_error, fdw_column_name_not_found,
  fdw_dynamic_parameter_value_needed, fdw_function_sequence_error, fdw_inconsistent_descriptor_information, fdw_invalid_attribute_value,
  fdw_invalid_column_name, fdw_invalid_column_number, fdw_invalid_data_type, fdw_invalid_data_type_descriptors,
  fdw_invalid_descriptor_field_identifier, fdw_invalid_handle, fdw_invalid_option_index, fdw_invalid_option_name,
  fdw_invalid_string_length_or_buffer_length, fdw_invalid_string_format, fdw_invalid_use_of_null_pointer, fdw_too_many_handles,
  fdw_out_of_memory, fdw_no_schemas, fdw_option_name_not_found, fdw_reply_handle,
  fdw_schema_not_found, fdw_table_not_found, fdw_unable_to_create_execution, fdw_unable_to_create_reply,
  fdw_unable_to_establish_connection, plpgsql_error, raise_exception, no_data_found,
  too_many_rows, internal_error, data_corrupted, index_corrupted
}
 

Functions

code code_to_state (std::string const &val)
 

Enumeration Type Documentation

Enumerator
unknown_code 
successful_completion 

00000

warning 

01000

dynamic_result_sets_returned 

0100C

implicit_zero_bit_padding 

01008

null_value_eliminated_in_set_function 

01003

privilege_not_granted 

01007

privilege_not_revoked 

01006

string_data_right_truncation 

01004

deprecated_feature 

01P01

no_data 

02000

no_additional_dynamic_result_sets_returned 

02001

sql_statement_not_yet_complete 

03000

connection_exception 

08000

connection_does_not_exist 

08003

connection_failure 

08006

sqlclient_unable_to_establish_sqlconnection 

08001

sqlserver_rejected_establishment_of_sqlconnection 

08004

transaction_resolution_unknown 

08007

protocol_violation 

08P01

triggered_action_exception 

09000

feature_not_supported 

0A000

invalid_transaction_initiation 

0B000

locator_exception 

0F000

invalid_locator_specification 

0F001

invalid_grantor 

0L000

invalid_grant_operation 

0LP01

invalid_role_specification 

0P000

diagnostics_exception 

0Z000

stacked_diagnostics_accessed_without_active_handler 

0Z002

case_not_found 

20000

cardinality_violation 

21000

data_exception 

22000

array_subscript_error 

2202E

character_not_in_repertoire 

22021

datetime_field_overflow 

22008

division_by_zero 

22012

error_in_assignment 

22005

escape_character_conflict 

2200B

indicator_overflow 

22022

interval_field_overflow 

22015

invalid_argument_for_logarithm 

2201E

invalid_argument_for_ntile_function 

22014

invalid_argument_for_nth_value_function 

22016

invalid_argument_for_power_function 

2201F

invalid_argument_for_width_bucket_function 

2201G

invalid_character_value_for_cast 

22018

invalid_datetime_format 

22007

invalid_escape_character 

22019

invalid_escape_octet 

2200D

invalid_escape_sequence 

22025

nonstandard_use_of_escape_character 

22P06

invalid_indicator_parameter_value 

22010

invalid_parameter_value 

22023

invalid_regular_expression 

2201B

invalid_row_count_in_limit_clause 

2201W

invalid_row_count_in_result_offset_clause 

2201X

invalid_time_zone_displacement_value 

22009

invalid_use_of_escape_character 

2200C

most_specific_type_mismatch 

2200G

null_value_not_allowed 

22004

null_value_no_indicator_parameter 

22002

numeric_value_out_of_range 

22003

string_data_length_mismatch 

22026

substring_error 

22011

trim_error 

22027

unterminated_c_string 

22024

zero_length_character_string 

2200F

floating_point_exception 

22P01

invalid_text_representation 

22P02

invalid_binary_representation 

22P03

bad_copy_file_format 

22P04

untranslatable_character 

22P05

not_an_xml_document 

2200L

invalid_xml_document 

2200M

invalid_xml_content 

2200N

invalid_xml_comment 

2200S

invalid_xml_processing_instruction 

2200T

integrity_constraint_violation 

23000

restrict_violation 

23001

not_null_violation 

23502

foreign_key_violation 

23503

unique_violation 

23505

check_violation 

23514

exclusion_violation 

23P01

invalid_cursor_state 

24000

invalid_transaction_state 

25000

active_sql_transaction 

25001

branch_transaction_already_active 

25002

held_cursor_requires_same_isolation_level 

25008

inappropriate_access_mode_for_branch_transaction 

25003

inappropriate_isolation_level_for_branch_transaction 

25004

no_active_sql_transaction_for_branch_transaction 

25005

read_only_sql_transaction 

25006

schema_and_data_statement_mixing_not_supported 

25007

no_active_sql_transaction 

25P01

in_failed_sql_transaction 

25P02

invalid_sql_statement_name 

26000

triggered_data_change_violation 

27000

invalid_authorization_specification 

28000

invalid_password 

28P01

dependent_privilege_descriptors_still_exist 

2B000

dependent_objects_still_exist 

2BP01

invalid_transaction_termination 

2D000

sql_routine_exception 

2F000

function_executed_no_return_statement 

2F005

modifying_sql_data_not_permitted 

2F002

prohibited_sql_statement_attempted 

2F003

reading_sql_data_not_permitted 

2F004

invalid_cursor_name 

34000

external_routine_exception 

38000

containing_sql_not_permitted 

38001

external_routine_invocation_exception 

39000

invalid_sqlstate_returned 

39001

trigger_protocol_violated 

39P01

srf_protocol_violated 

39P02

savepoint_exception 

3B000

invalid_savepoint_specification 

3B001

invalid_catalog_name 

3D000

invalid_schema_name 

3F000

transaction_rollback 

40000

transaction_integrity_constraint_violation 

40002

serialization_failure 

40001

statement_completion_unknown 

40003

deadlock_detected 

40P01

syntax_error_or_access_rule_violation 

42000

syntax_error 

42601

insufficient_privilege 

42501

cannot_coerce 

42846

grouping_error 

42803

windowing_error 

42P20

invalid_recursion 

42P19

invalid_foreign_key 

42830

invalid_name 

42602

name_too_long 

42622

reserved_name 

42939

datatype_mismatch 

42804

indeterminate_datatype 

42P18

collation_mismatch 

42P21

indeterminate_collation 

42P22

wrong_object_type 

42809

undefined_column 

42703

undefined_function 

42883

undefined_table 

42P01

undefined_parameter 

42P02

undefined_object 

42704

duplicate_column 

42701

duplicate_cursor 

42P03

duplicate_database 

42P04

duplicate_function 

42723

duplicate_prepared_statement 

42P05

duplicate_schema 

42P06

duplicate_table 

42P07

duplicate_alias 

42712

duplicate_object 

42710

ambiguous_column 

42702

ambiguous_function 

42725

ambiguous_parameter 

42P08

ambiguous_alias 

42P09

invalid_column_reference 

42P10

invalid_column_definition 

42611

invalid_cursor_definition 

42P11

invalid_database_definition 

42P12

invalid_function_definition 

42P13

invalid_prepared_statement_definition 

42P14

invalid_schema_definition 

42P15

invalid_table_definition 

42P16

invalid_object_definition 

42P17

with_check_option_violation 

44000

insufficient_resources 

53000

disk_full 

53100

out_of_memory 

53200

too_many_connections 

53300

configuration_limit_exceeded 

53400

program_limit_exceeded 

54000

statement_too_complex 

54001

too_many_columns 

54011

too_many_arguments 

54023

object_not_in_prerequisite_state 

55000

object_in_use 

55006

cant_change_runtime_param 

55P02

lock_not_available 

55P03

operator_intervention 

57000

query_canceled 

57014

admin_shutdown 

57P01

crash_shutdown 

57P02

cannot_connect_now 

57P03

database_dropped 

57P04

system_error 

58000

io_error 

58030

undefined_file 

58P01

duplicate_file 

58P02

config_file_error 

F0000

lock_file_exists 

F0001

fdw_error 

HV000

fdw_column_name_not_found 

HV005

fdw_dynamic_parameter_value_needed 

HV002

fdw_function_sequence_error 

HV010

fdw_inconsistent_descriptor_information 

HV021

fdw_invalid_attribute_value 

HV024

fdw_invalid_column_name 

HV007

fdw_invalid_column_number 

HV008

fdw_invalid_data_type 

HV004

fdw_invalid_data_type_descriptors 

HV006

fdw_invalid_descriptor_field_identifier 

HV091

fdw_invalid_handle 

HV00B

fdw_invalid_option_index 

HV00C

fdw_invalid_option_name 

HV00D

fdw_invalid_string_length_or_buffer_length 

HV090

fdw_invalid_string_format 

HV00A

fdw_invalid_use_of_null_pointer 

HV009

fdw_too_many_handles 

HV014

fdw_out_of_memory 

HV001

fdw_no_schemas 

HV00P

fdw_option_name_not_found 

HV00J

fdw_reply_handle 

HV00K

fdw_schema_not_found 

HV00Q

fdw_table_not_found 

HV00R

fdw_unable_to_create_execution 

HV00L

fdw_unable_to_create_reply 

HV00M

fdw_unable_to_establish_connection 

HV00N

plpgsql_error 

P0000

raise_exception 

P0001

no_data_found 

P0002

too_many_rows 

P0003

internal_error 

XX000

data_corrupted 

XX001

index_corrupted 

XX002

Definition at line 11 of file sqlstates.hpp.

Function Documentation

code tip::db::pg::sqlstate::code_to_state ( std::string const &  val)