Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Ensure we correctly handle the case where a user tries to set a seque…

…nce max value higher than int8 allows.

git-svn-id: svn:// a7884b65-44f6-0310-8a51-81a127f17b15
  • Loading branch information...
commit 85fea511e2d6ed789fce333c339d0a02ecc4c8f5 1 parent e63232a
@dpage dpage authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  pgadmin/dlg/dlgSequence.cpp
2  pgadmin/dlg/dlgSequence.cpp
@@ -216,7 +216,7 @@ wxString dlgSequence::GetSql()
if (txtMax->GetValue().IsEmpty())
tmp += wxT("\n NO MAXVALUE");
- else if (StrToLongLong(txtMax->GetValue()) > sequence->GetMaxValue())
+ else if (StrToLongLong(txtMax->GetValue()) >= sequence->GetMaxValue())
tmp += wxT("\n MAXVALUE ") + txtMax->GetValue();
if (!tmp.IsEmpty())
Please sign in to comment.
Something went wrong with that request. Please try again.