epgsql_errcodes.erl 13 KB

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