Use Integer.MAX_VALUE instead for better readability

This commit is contained in:
Yanming Zhou 2024-04-12 09:29:01 +08:00 committed by Christian Beikov
parent 62a973dce0
commit 95403bc083
2 changed files with 2 additions and 2 deletions

View File

@ -261,7 +261,7 @@ public class SQLServerLegacyDialect extends AbstractTransactSQLDialect {
// this is essentially the only legal length for // this is essentially the only legal length for
// a "lob" in SQL Server, i.e. the value of MAX // a "lob" in SQL Server, i.e. the value of MAX
// (caveat: for NVARCHAR it is half this value) // (caveat: for NVARCHAR it is half this value)
return 2_147_483_647; return Integer.MAX_VALUE;
} }
@Override @Override

View File

@ -292,7 +292,7 @@ public class SQLServerDialect extends AbstractTransactSQLDialect {
// this is essentially the only legal length for // this is essentially the only legal length for
// a "lob" in SQL Server, i.e. the value of MAX // a "lob" in SQL Server, i.e. the value of MAX
// (caveat: for NVARCHAR it is half this value) // (caveat: for NVARCHAR it is half this value)
return 2_147_483_647; return Integer.MAX_VALUE;
} }
@Override @Override