Ensure we correctly handle the case where a user tries to set a sequence max value...
authordpage <dpage@a7884b65-44f6-0310-8a51-81a127f17b15>
Tue, 24 Mar 2009 09:13:00 +0000 (09:13 +0000)
committerdpage <dpage@a7884b65-44f6-0310-8a51-81a127f17b15>
Tue, 24 Mar 2009 09:13:00 +0000 (09:13 +0000)
git-svn-id: svn://svn.pgadmin.org/trunk/pgadmin3@7749 a7884b65-44f6-0310-8a51-81a127f17b15

pgadmin/dlg/dlgSequence.cpp

index 675de5f9603ee2a8fe20aa9223bda4ee66df0ea7..e77963c35c488fcd5face84c6a2382764835ee3c 100644 (file)
@@ -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())