Elena Ezhova 3ca85460a1 Fix quota limit range validator
In Quota model limit is defined with Integer type which in case of
MySQL and PostgreSQL is always stored in 4 bytes. At the same time,
the current validator checks that the value does not exceed sys.maxsize
which depends on whether the system is 32-bit or 64-bit based.

In SQLite Integer can be stored in 1, 2, 3, 4, 6, or 8 bytes depending
on the magnitude of the value. Nevertheless, assume that it can not
exceed 4 bytes for consistency.

Limited the upper bound of the validator with 2**31 - 1.

Added a unit test.

Closes-Bug: #1338479
Change-Id: Icefa2fc228e4255a022d586cab4590607953d1ee
2014-09-25 10:30:14 +04:00
..
2014-09-25 10:30:14 +04:00
2014-08-01 16:10:23 +00:00
2014-08-01 16:10:23 +00:00
2014-09-25 10:30:14 +04:00
2014-06-21 15:07:31 +08:00
2014-08-12 11:17:21 +09:00
2014-08-12 11:17:21 +09:00
2014-06-21 15:07:31 +08:00
2014-06-21 15:07:31 +08:00
2014-06-21 15:07:31 +08:00
2014-06-21 15:07:31 +08:00