diff options
author | 2007-10-10 15:00:18 +0000 | |
---|---|---|
committer | 2007-10-10 15:00:18 +0000 | |
commit | c02ab7f8bd9caf0dffaba6a88030ac57c21951a8 (patch) | |
tree | 34db9b4d5ba9c00e7f61555a5654902fe2bdcec5 /Bugzilla/Constants.pm | |
parent | Bug 398968: editversions.cgi should use transactions for database interaction... (diff) | |
download | bugzilla-c02ab7f8bd9caf0dffaba6a88030ac57c21951a8.tar.gz bugzilla-c02ab7f8bd9caf0dffaba6a88030ac57c21951a8.tar.bz2 bugzilla-c02ab7f8bd9caf0dffaba6a88030ac57c21951a8.zip |
Bug 313129: Implement $milestone->create and $milestone->update based on Object.pm - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
Diffstat (limited to 'Bugzilla/Constants.pm')
-rw-r--r-- | Bugzilla/Constants.pm | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Bugzilla/Constants.pm b/Bugzilla/Constants.pm index 7ac6048c4..99edb2f50 100644 --- a/Bugzilla/Constants.pm +++ b/Bugzilla/Constants.pm @@ -142,7 +142,11 @@ use File::Basename; SAFE_PROTOCOLS + MIN_SMALLINT + MAX_SMALLINT + MAX_LEN_QUERY_NAME + MAX_MILESTONE_SIZE ); @Bugzilla::Constants::EXPORT_OK = qw(contenttypes); @@ -397,9 +401,15 @@ use constant ROOT_USER => $^O =~ /MSWin32/i ? 'Administrator' : 'root'; # True if we're on Win32. use constant ON_WINDOWS => ($^O =~ /MSWin32/i); +use constant MIN_SMALLINT => -32768; +use constant MAX_SMALLINT => 32767; + # The longest that a saved search name can be. use constant MAX_LEN_QUERY_NAME => 64; +# The longest milestone name allowed. +use constant MAX_MILESTONE_SIZE => 20; + sub bz_locations { # We know that Bugzilla/Constants.pm must be in %INC at this point. # So the only question is, what's the name of the directory |