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:
Paul Holden
2024-05-24 22:19:54 +01:00
parent 96ded90e68
commit c9d2e72943
7 changed files with 26 additions and 25 deletions
+1 -1
View File
@@ -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.