Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
shnikd committed Apr 26, 2024
1 parent 2f1a9b3 commit a47e4c5
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ std::optional<NKikimrSchemeOp::TSequenceDescription> GetAlterSequenceDescription
errStr = Sprintf("MINVALUE (%ld) must be less than MAXVALUE (%ld)", minValue, maxValue);
status = NKikimrScheme::StatusInvalidParameter;
return std::nullopt;
}
}

i64 startValue = result.GetStartValue();
if (alter.HasStartValue()) {
Expand All @@ -257,12 +257,12 @@ std::optional<NKikimrSchemeOp::TSequenceDescription> GetAlterSequenceDescription
errStr = Sprintf("START value (%ld) cannot be greater than MAXVALUE (%ld)", startValue, maxValue);
status = NKikimrScheme::StatusInvalidParameter;
return std::nullopt;
}
}
if (startValue < minValue) {
errStr = Sprintf("START value (%ld) cannot be less than MINVALUE (%ld)", startValue, minValue);
status = NKikimrScheme::StatusInvalidParameter;
return std::nullopt;
}
}

i64 increment = result.GetIncrement();
if (alter.HasIncrement()) {
Expand Down

0 comments on commit a47e4c5

Please sign in to comment.