Browse Source

Re-generate epgsql_errcodes.erl

Сергей Прохоров 7 years ago
parent
commit
0a7d850655
2 changed files with 9 additions and 2 deletions
  1. 1 1
      generate_errcodes_src.sh
  2. 8 1
      src/epgsql_errcodes.erl

+ 1 - 1
generate_errcodes_src.sh

@@ -3,7 +3,7 @@
 # Used to generate epgsql_errcodes.erl
 # Used to generate epgsql_errcodes.erl
 #
 #
 ERRFILE="https://raw.github.com/postgres/postgres/master/src/backend/utils/errcodes.txt"
 ERRFILE="https://raw.github.com/postgres/postgres/master/src/backend/utils/errcodes.txt"
-echo "%% DO NOT EDIT - AUTOGENERATED ON $(date)"
+echo "%% DO NOT EDIT - AUTOGENERATED BY $0 ON $(date +%Y-%m-%dT%H:%M:%S%z)"
 echo "-module(epgsql_errcodes)."
 echo "-module(epgsql_errcodes)."
 echo "-export([to_name/1])."
 echo "-export([to_name/1])."
 echo
 echo

+ 8 - 1
src/epgsql_errcodes.erl

@@ -1,4 +1,4 @@
-%% DO NOT EDIT - AUTOGENERATED ON Mon  1 Jun 2015 14:42:37 BST
+%% DO NOT EDIT - AUTOGENERATED BY ./generate_errcodes_src.sh ON 2018-02-23T11:18:01+0100
 -module(epgsql_errcodes).
 -module(epgsql_errcodes).
 -export([to_name/1]).
 -export([to_name/1]).
 
 
@@ -55,15 +55,19 @@ to_name(<<"22025">>) -> invalid_escape_sequence;
 to_name(<<"22P06">>) -> nonstandard_use_of_escape_character;
 to_name(<<"22P06">>) -> nonstandard_use_of_escape_character;
 to_name(<<"22010">>) -> invalid_indicator_parameter_value;
 to_name(<<"22010">>) -> invalid_indicator_parameter_value;
 to_name(<<"22023">>) -> invalid_parameter_value;
 to_name(<<"22023">>) -> invalid_parameter_value;
+to_name(<<"22013">>) -> invalid_preceding_following_size;
 to_name(<<"2201B">>) -> invalid_regular_expression;
 to_name(<<"2201B">>) -> invalid_regular_expression;
 to_name(<<"2201W">>) -> invalid_row_count_in_limit_clause;
 to_name(<<"2201W">>) -> invalid_row_count_in_limit_clause;
 to_name(<<"2201X">>) -> invalid_row_count_in_result_offset_clause;
 to_name(<<"2201X">>) -> invalid_row_count_in_result_offset_clause;
+to_name(<<"2202H">>) -> invalid_tablesample_argument;
+to_name(<<"2202G">>) -> invalid_tablesample_repeat;
 to_name(<<"22009">>) -> invalid_time_zone_displacement_value;
 to_name(<<"22009">>) -> invalid_time_zone_displacement_value;
 to_name(<<"2200C">>) -> invalid_use_of_escape_character;
 to_name(<<"2200C">>) -> invalid_use_of_escape_character;
 to_name(<<"2200G">>) -> most_specific_type_mismatch;
 to_name(<<"2200G">>) -> most_specific_type_mismatch;
 to_name(<<"22004">>) -> null_value_not_allowed;
 to_name(<<"22004">>) -> null_value_not_allowed;
 to_name(<<"22002">>) -> null_value_no_indicator_parameter;
 to_name(<<"22002">>) -> null_value_no_indicator_parameter;
 to_name(<<"22003">>) -> numeric_value_out_of_range;
 to_name(<<"22003">>) -> numeric_value_out_of_range;
+to_name(<<"2200H">>) -> sequence_generator_limit_exceeded;
 to_name(<<"22026">>) -> string_data_length_mismatch;
 to_name(<<"22026">>) -> string_data_length_mismatch;
 to_name(<<"22001">>) -> string_data_right_truncation;
 to_name(<<"22001">>) -> string_data_right_truncation;
 to_name(<<"22011">>) -> substring_error;
 to_name(<<"22011">>) -> substring_error;
@@ -99,6 +103,7 @@ to_name(<<"25006">>) -> read_only_sql_transaction;
 to_name(<<"25007">>) -> schema_and_data_statement_mixing_not_supported;
 to_name(<<"25007">>) -> schema_and_data_statement_mixing_not_supported;
 to_name(<<"25P01">>) -> no_active_sql_transaction;
 to_name(<<"25P01">>) -> no_active_sql_transaction;
 to_name(<<"25P02">>) -> in_failed_sql_transaction;
 to_name(<<"25P02">>) -> in_failed_sql_transaction;
+to_name(<<"25P03">>) -> idle_in_transaction_session_timeout;
 to_name(<<"26000">>) -> invalid_sql_statement_name;
 to_name(<<"26000">>) -> invalid_sql_statement_name;
 to_name(<<"27000">>) -> triggered_data_change_violation;
 to_name(<<"27000">>) -> triggered_data_change_violation;
 to_name(<<"28000">>) -> invalid_authorization_specification;
 to_name(<<"28000">>) -> invalid_authorization_specification;
@@ -148,6 +153,7 @@ to_name(<<"42P18">>) -> indeterminate_datatype;
 to_name(<<"42P21">>) -> collation_mismatch;
 to_name(<<"42P21">>) -> collation_mismatch;
 to_name(<<"42P22">>) -> indeterminate_collation;
 to_name(<<"42P22">>) -> indeterminate_collation;
 to_name(<<"42809">>) -> wrong_object_type;
 to_name(<<"42809">>) -> wrong_object_type;
+to_name(<<"428C9">>) -> generated_always;
 to_name(<<"42703">>) -> undefined_column;
 to_name(<<"42703">>) -> undefined_column;
 to_name(<<"42883">>) -> undefined_function;
 to_name(<<"42883">>) -> undefined_function;
 to_name(<<"42P01">>) -> undefined_table;
 to_name(<<"42P01">>) -> undefined_table;
@@ -199,6 +205,7 @@ to_name(<<"58000">>) -> system_error;
 to_name(<<"58030">>) -> io_error;
 to_name(<<"58030">>) -> io_error;
 to_name(<<"58P01">>) -> undefined_file;
 to_name(<<"58P01">>) -> undefined_file;
 to_name(<<"58P02">>) -> duplicate_file;
 to_name(<<"58P02">>) -> duplicate_file;
+to_name(<<"72000">>) -> snapshot_too_old;
 to_name(<<"F0000">>) -> config_file_error;
 to_name(<<"F0000">>) -> config_file_error;
 to_name(<<"F0001">>) -> lock_file_exists;
 to_name(<<"F0001">>) -> lock_file_exists;
 to_name(<<"HV000">>) -> fdw_error;
 to_name(<<"HV000">>) -> fdw_error;