1%% DO NOT EDIT - AUTOGENERATED BY ./generate_errcodes_src.sh ON 2018-02-23T11:18:01+0100 2-module(epgsql_errcodes). 3-export([to_name/1]). 4 5to_name(<<"00000">>) -> successful_completion; 6to_name(<<"01000">>) -> warning; 7to_name(<<"0100C">>) -> dynamic_result_sets_returned; 8to_name(<<"01008">>) -> implicit_zero_bit_padding; 9to_name(<<"01003">>) -> null_value_eliminated_in_set_function; 10to_name(<<"01007">>) -> privilege_not_granted; 11to_name(<<"01006">>) -> privilege_not_revoked; 12to_name(<<"01004">>) -> string_data_right_truncation; 13to_name(<<"01P01">>) -> deprecated_feature; 14to_name(<<"02000">>) -> no_data; 15to_name(<<"02001">>) -> no_additional_dynamic_result_sets_returned; 16to_name(<<"03000">>) -> sql_statement_not_yet_complete; 17to_name(<<"08000">>) -> connection_exception; 18to_name(<<"08003">>) -> connection_does_not_exist; 19to_name(<<"08006">>) -> connection_failure; 20to_name(<<"08001">>) -> sqlclient_unable_to_establish_sqlconnection; 21to_name(<<"08004">>) -> sqlserver_rejected_establishment_of_sqlconnection; 22to_name(<<"08007">>) -> transaction_resolution_unknown; 23to_name(<<"08P01">>) -> protocol_violation; 24to_name(<<"09000">>) -> triggered_action_exception; 25to_name(<<"0A000">>) -> feature_not_supported; 26to_name(<<"0B000">>) -> invalid_transaction_initiation; 27to_name(<<"0F000">>) -> locator_exception; 28to_name(<<"0F001">>) -> invalid_locator_specification; 29to_name(<<"0L000">>) -> invalid_grantor; 30to_name(<<"0LP01">>) -> invalid_grant_operation; 31to_name(<<"0P000">>) -> invalid_role_specification; 32to_name(<<"0Z000">>) -> diagnostics_exception; 33to_name(<<"0Z002">>) -> stacked_diagnostics_accessed_without_active_handler; 34to_name(<<"20000">>) -> case_not_found; 35to_name(<<"21000">>) -> cardinality_violation; 36to_name(<<"22000">>) -> data_exception; 37to_name(<<"2202E">>) -> array_subscript_error; 38to_name(<<"22021">>) -> character_not_in_repertoire; 39to_name(<<"22008">>) -> datetime_field_overflow; 40to_name(<<"22012">>) -> division_by_zero; 41to_name(<<"22005">>) -> error_in_assignment; 42to_name(<<"2200B">>) -> escape_character_conflict; 43to_name(<<"22022">>) -> indicator_overflow; 44to_name(<<"22015">>) -> interval_field_overflow; 45to_name(<<"2201E">>) -> invalid_argument_for_logarithm; 46to_name(<<"22014">>) -> invalid_argument_for_ntile_function; 47to_name(<<"22016">>) -> invalid_argument_for_nth_value_function; 48to_name(<<"2201F">>) -> invalid_argument_for_power_function; 49to_name(<<"2201G">>) -> invalid_argument_for_width_bucket_function; 50to_name(<<"22018">>) -> invalid_character_value_for_cast; 51to_name(<<"22007">>) -> invalid_datetime_format; 52to_name(<<"22019">>) -> invalid_escape_character; 53to_name(<<"2200D">>) -> invalid_escape_octet; 54to_name(<<"22025">>) -> invalid_escape_sequence; 55to_name(<<"22P06">>) -> nonstandard_use_of_escape_character; 56to_name(<<"22010">>) -> invalid_indicator_parameter_value; 57to_name(<<"22023">>) -> invalid_parameter_value; 58to_name(<<"22013">>) -> invalid_preceding_following_size; 59to_name(<<"2201B">>) -> invalid_regular_expression; 60to_name(<<"2201W">>) -> invalid_row_count_in_limit_clause; 61to_name(<<"2201X">>) -> invalid_row_count_in_result_offset_clause; 62to_name(<<"2202H">>) -> invalid_tablesample_argument; 63to_name(<<"2202G">>) -> invalid_tablesample_repeat; 64to_name(<<"22009">>) -> invalid_time_zone_displacement_value; 65to_name(<<"2200C">>) -> invalid_use_of_escape_character; 66to_name(<<"2200G">>) -> most_specific_type_mismatch; 67to_name(<<"22004">>) -> null_value_not_allowed; 68to_name(<<"22002">>) -> null_value_no_indicator_parameter; 69to_name(<<"22003">>) -> numeric_value_out_of_range; 70to_name(<<"2200H">>) -> sequence_generator_limit_exceeded; 71to_name(<<"22026">>) -> string_data_length_mismatch; 72to_name(<<"22001">>) -> string_data_right_truncation; 73to_name(<<"22011">>) -> substring_error; 74to_name(<<"22027">>) -> trim_error; 75to_name(<<"22024">>) -> unterminated_c_string; 76to_name(<<"2200F">>) -> zero_length_character_string; 77to_name(<<"22P01">>) -> floating_point_exception; 78to_name(<<"22P02">>) -> invalid_text_representation; 79to_name(<<"22P03">>) -> invalid_binary_representation; 80to_name(<<"22P04">>) -> bad_copy_file_format; 81to_name(<<"22P05">>) -> untranslatable_character; 82to_name(<<"2200L">>) -> not_an_xml_document; 83to_name(<<"2200M">>) -> invalid_xml_document; 84to_name(<<"2200N">>) -> invalid_xml_content; 85to_name(<<"2200S">>) -> invalid_xml_comment; 86to_name(<<"2200T">>) -> invalid_xml_processing_instruction; 87to_name(<<"23000">>) -> integrity_constraint_violation; 88to_name(<<"23001">>) -> restrict_violation; 89to_name(<<"23502">>) -> not_null_violation; 90to_name(<<"23503">>) -> foreign_key_violation; 91to_name(<<"23505">>) -> unique_violation; 92to_name(<<"23514">>) -> check_violation; 93to_name(<<"23P01">>) -> exclusion_violation; 94to_name(<<"24000">>) -> invalid_cursor_state; 95to_name(<<"25000">>) -> invalid_transaction_state; 96to_name(<<"25001">>) -> active_sql_transaction; 97to_name(<<"25002">>) -> branch_transaction_already_active; 98to_name(<<"25008">>) -> held_cursor_requires_same_isolation_level; 99to_name(<<"25003">>) -> inappropriate_access_mode_for_branch_transaction; 100to_name(<<"25004">>) -> inappropriate_isolation_level_for_branch_transaction; 101to_name(<<"25005">>) -> no_active_sql_transaction_for_branch_transaction; 102to_name(<<"25006">>) -> read_only_sql_transaction; 103to_name(<<"25007">>) -> schema_and_data_statement_mixing_not_supported; 104to_name(<<"25P01">>) -> no_active_sql_transaction; 105to_name(<<"25P02">>) -> in_failed_sql_transaction; 106to_name(<<"25P03">>) -> idle_in_transaction_session_timeout; 107to_name(<<"26000">>) -> invalid_sql_statement_name; 108to_name(<<"27000">>) -> triggered_data_change_violation; 109to_name(<<"28000">>) -> invalid_authorization_specification; 110to_name(<<"28P01">>) -> invalid_password; 111to_name(<<"2B000">>) -> dependent_privilege_descriptors_still_exist; 112to_name(<<"2BP01">>) -> dependent_objects_still_exist; 113to_name(<<"2D000">>) -> invalid_transaction_termination; 114to_name(<<"2F000">>) -> sql_routine_exception; 115to_name(<<"2F005">>) -> function_executed_no_return_statement; 116to_name(<<"2F002">>) -> modifying_sql_data_not_permitted; 117to_name(<<"2F003">>) -> prohibited_sql_statement_attempted; 118to_name(<<"2F004">>) -> reading_sql_data_not_permitted; 119to_name(<<"34000">>) -> invalid_cursor_name; 120to_name(<<"38000">>) -> external_routine_exception; 121to_name(<<"38001">>) -> containing_sql_not_permitted; 122to_name(<<"38002">>) -> modifying_sql_data_not_permitted; 123to_name(<<"38003">>) -> prohibited_sql_statement_attempted; 124to_name(<<"38004">>) -> reading_sql_data_not_permitted; 125to_name(<<"39000">>) -> external_routine_invocation_exception; 126to_name(<<"39001">>) -> invalid_sqlstate_returned; 127to_name(<<"39004">>) -> null_value_not_allowed; 128to_name(<<"39P01">>) -> trigger_protocol_violated; 129to_name(<<"39P02">>) -> srf_protocol_violated; 130to_name(<<"39P03">>) -> event_trigger_protocol_violated; 131to_name(<<"3B000">>) -> savepoint_exception; 132to_name(<<"3B001">>) -> invalid_savepoint_specification; 133to_name(<<"3D000">>) -> invalid_catalog_name; 134to_name(<<"3F000">>) -> invalid_schema_name; 135to_name(<<"40000">>) -> transaction_rollback; 136to_name(<<"40002">>) -> transaction_integrity_constraint_violation; 137to_name(<<"40001">>) -> serialization_failure; 138to_name(<<"40003">>) -> statement_completion_unknown; 139to_name(<<"40P01">>) -> deadlock_detected; 140to_name(<<"42000">>) -> syntax_error_or_access_rule_violation; 141to_name(<<"42601">>) -> syntax_error; 142to_name(<<"42501">>) -> insufficient_privilege; 143to_name(<<"42846">>) -> cannot_coerce; 144to_name(<<"42803">>) -> grouping_error; 145to_name(<<"42P20">>) -> windowing_error; 146to_name(<<"42P19">>) -> invalid_recursion; 147to_name(<<"42830">>) -> invalid_foreign_key; 148to_name(<<"42602">>) -> invalid_name; 149to_name(<<"42622">>) -> name_too_long; 150to_name(<<"42939">>) -> reserved_name; 151to_name(<<"42804">>) -> datatype_mismatch; 152to_name(<<"42P18">>) -> indeterminate_datatype; 153to_name(<<"42P21">>) -> collation_mismatch; 154to_name(<<"42P22">>) -> indeterminate_collation; 155to_name(<<"42809">>) -> wrong_object_type; 156to_name(<<"428C9">>) -> generated_always; 157to_name(<<"42703">>) -> undefined_column; 158to_name(<<"42883">>) -> undefined_function; 159to_name(<<"42P01">>) -> undefined_table; 160to_name(<<"42P02">>) -> undefined_parameter; 161to_name(<<"42704">>) -> undefined_object; 162to_name(<<"42701">>) -> duplicate_column; 163to_name(<<"42P03">>) -> duplicate_cursor; 164to_name(<<"42P04">>) -> duplicate_database; 165to_name(<<"42723">>) -> duplicate_function; 166to_name(<<"42P05">>) -> duplicate_prepared_statement; 167to_name(<<"42P06">>) -> duplicate_schema; 168to_name(<<"42P07">>) -> duplicate_table; 169to_name(<<"42712">>) -> duplicate_alias; 170to_name(<<"42710">>) -> duplicate_object; 171to_name(<<"42702">>) -> ambiguous_column; 172to_name(<<"42725">>) -> ambiguous_function; 173to_name(<<"42P08">>) -> ambiguous_parameter; 174to_name(<<"42P09">>) -> ambiguous_alias; 175to_name(<<"42P10">>) -> invalid_column_reference; 176to_name(<<"42611">>) -> invalid_column_definition; 177to_name(<<"42P11">>) -> invalid_cursor_definition; 178to_name(<<"42P12">>) -> invalid_database_definition; 179to_name(<<"42P13">>) -> invalid_function_definition; 180to_name(<<"42P14">>) -> invalid_prepared_statement_definition; 181to_name(<<"42P15">>) -> invalid_schema_definition; 182to_name(<<"42P16">>) -> invalid_table_definition; 183to_name(<<"42P17">>) -> invalid_object_definition; 184to_name(<<"44000">>) -> with_check_option_violation; 185to_name(<<"53000">>) -> insufficient_resources; 186to_name(<<"53100">>) -> disk_full; 187to_name(<<"53200">>) -> out_of_memory; 188to_name(<<"53300">>) -> too_many_connections; 189to_name(<<"53400">>) -> configuration_limit_exceeded; 190to_name(<<"54000">>) -> program_limit_exceeded; 191to_name(<<"54001">>) -> statement_too_complex; 192to_name(<<"54011">>) -> too_many_columns; 193to_name(<<"54023">>) -> too_many_arguments; 194to_name(<<"55000">>) -> object_not_in_prerequisite_state; 195to_name(<<"55006">>) -> object_in_use; 196to_name(<<"55P02">>) -> cant_change_runtime_param; 197to_name(<<"55P03">>) -> lock_not_available; 198to_name(<<"57000">>) -> operator_intervention; 199to_name(<<"57014">>) -> query_canceled; 200to_name(<<"57P01">>) -> admin_shutdown; 201to_name(<<"57P02">>) -> crash_shutdown; 202to_name(<<"57P03">>) -> cannot_connect_now; 203to_name(<<"57P04">>) -> database_dropped; 204to_name(<<"58000">>) -> system_error; 205to_name(<<"58030">>) -> io_error; 206to_name(<<"58P01">>) -> undefined_file; 207to_name(<<"58P02">>) -> duplicate_file; 208to_name(<<"72000">>) -> snapshot_too_old; 209to_name(<<"F0000">>) -> config_file_error; 210to_name(<<"F0001">>) -> lock_file_exists; 211to_name(<<"HV000">>) -> fdw_error; 212to_name(<<"HV005">>) -> fdw_column_name_not_found; 213to_name(<<"HV002">>) -> fdw_dynamic_parameter_value_needed; 214to_name(<<"HV010">>) -> fdw_function_sequence_error; 215to_name(<<"HV021">>) -> fdw_inconsistent_descriptor_information; 216to_name(<<"HV024">>) -> fdw_invalid_attribute_value; 217to_name(<<"HV007">>) -> fdw_invalid_column_name; 218to_name(<<"HV008">>) -> fdw_invalid_column_number; 219to_name(<<"HV004">>) -> fdw_invalid_data_type; 220to_name(<<"HV006">>) -> fdw_invalid_data_type_descriptors; 221to_name(<<"HV091">>) -> fdw_invalid_descriptor_field_identifier; 222to_name(<<"HV00B">>) -> fdw_invalid_handle; 223to_name(<<"HV00C">>) -> fdw_invalid_option_index; 224to_name(<<"HV00D">>) -> fdw_invalid_option_name; 225to_name(<<"HV090">>) -> fdw_invalid_string_length_or_buffer_length; 226to_name(<<"HV00A">>) -> fdw_invalid_string_format; 227to_name(<<"HV009">>) -> fdw_invalid_use_of_null_pointer; 228to_name(<<"HV014">>) -> fdw_too_many_handles; 229to_name(<<"HV001">>) -> fdw_out_of_memory; 230to_name(<<"HV00P">>) -> fdw_no_schemas; 231to_name(<<"HV00J">>) -> fdw_option_name_not_found; 232to_name(<<"HV00K">>) -> fdw_reply_handle; 233to_name(<<"HV00Q">>) -> fdw_schema_not_found; 234to_name(<<"HV00R">>) -> fdw_table_not_found; 235to_name(<<"HV00L">>) -> fdw_unable_to_create_execution; 236to_name(<<"HV00M">>) -> fdw_unable_to_create_reply; 237to_name(<<"HV00N">>) -> fdw_unable_to_establish_connection; 238to_name(<<"P0000">>) -> plpgsql_error; 239to_name(<<"P0001">>) -> raise_exception; 240to_name(<<"P0002">>) -> no_data_found; 241to_name(<<"P0003">>) -> too_many_rows; 242to_name(<<"P0004">>) -> assert_failure; 243to_name(<<"XX000">>) -> internal_error; 244to_name(<<"XX001">>) -> data_corrupted; 245to_name(<<"XX002">>) -> index_corrupted; 246to_name(_) -> undefined. 247