File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -694,7 +694,7 @@ nextval_internal(Oid relid)
694694
695695 snprintf (buf , sizeof (buf ), INT64_FORMAT , maxv );
696696 ereport (ERROR ,
697- (errcode (ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE ),
697+ (errcode (ERRCODE_SEQUENCE_GENERATOR_LIMIT_EXCEEDED ),
698698 errmsg ("nextval: reached maximum value of sequence \"%s\" (%s)" ,
699699 RelationGetRelationName (seqrel ), buf )));
700700 }
@@ -717,7 +717,7 @@ nextval_internal(Oid relid)
717717
718718 snprintf (buf , sizeof (buf ), INT64_FORMAT , minv );
719719 ereport (ERROR ,
720- (errcode (ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE ),
720+ (errcode (ERRCODE_SEQUENCE_GENERATOR_LIMIT_EXCEEDED ),
721721 errmsg ("nextval: reached minimum value of sequence \"%s\" (%s)" ,
722722 RelationGetRelationName (seqrel ), buf )));
723723 }
Original file line number Diff line number Diff line change @@ -188,6 +188,7 @@ Section: Class 22 - Data Exception
18818822004 E ERRCODE_NULL_VALUE_NOT_ALLOWED null_value_not_allowed
18918922002 E ERRCODE_NULL_VALUE_NO_INDICATOR_PARAMETER null_value_no_indicator_parameter
19019022003 E ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE numeric_value_out_of_range
191+ 2200H E ERRCODE_SEQUENCE_GENERATOR_LIMIT_EXCEEDED sequence_generator_limit_exceeded
19119222026 E ERRCODE_STRING_DATA_LENGTH_MISMATCH string_data_length_mismatch
19219322001 E ERRCODE_STRING_DATA_RIGHT_TRUNCATION string_data_right_truncation
19319422011 E ERRCODE_SUBSTRING_ERROR substring_error
You can’t perform that action at this time.
0 commit comments