Permalink
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://svn.pgadmin.org/trunk@7749 a7884b65-44f6-0310-8a51-81a127f17b15
  • Loading branch information...
dpage committed Mar 24, 2009
1 parent e63232a commit 85fea511e2d6ed789fce333c339d0a02ecc4c8f5
Showing with 1 addition and 1 deletion.
  1. +1 −1 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())

0 comments on commit 85fea51

Please sign in to comment.