MDL-81282 dml: replace occurrences of large integers with new constant.
Where calling code was previously using either the 32-bit limit, or a value equal to SQL_INT_MAX inside a database read/write, instead use our new constant.
This commit is contained in:
@@ -39,7 +39,7 @@ interface analysable {
|
||||
* Max timestamp.
|
||||
* We are limited by both PHP's max int value and DB (cross-db) max int allowed. Use the smallest one.
|
||||
*/
|
||||
const MAX_TIME = PHP_INT_MAX < 9999999999 ? PHP_MAX_INT : 9999999999;
|
||||
const MAX_TIME = PHP_INT_MAX < SQL_INT_MAX ? PHP_INT_MAX : SQL_INT_MAX;
|
||||
|
||||
/**
|
||||
* The analysable unique identifier in the site.
|
||||
|
||||
Reference in New Issue
Block a user