2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-04 07:55:18 +00:00

[#2438] raise the length of client classes in the limits MySQL schema

This commit is contained in:
Andrei Pavel
2022-06-23 12:13:01 +03:00
parent f7d8e23233
commit 0da6f84867
4 changed files with 25 additions and 22 deletions

View File

@@ -97,6 +97,9 @@ const size_t ADDRESS6_TEXT_MAX_LEN = 39;
/// @brief Maximum length of user context.
const size_t USER_CONTEXT_MAX_LEN = 8192;
/// @brief Maximum length of the text returned by the limit checking functions.
const size_t LIMITS_TEXT_MAX_LEN = 512;
boost::array<TaggedStatement, MySqlLeaseMgr::NUM_STATEMENTS>
tagged_statements = { {
{MySqlLeaseMgr::DELETE_LEASE4,
@@ -3109,7 +3112,7 @@ MySqlLeaseMgr::checkLimits(ConstElementPtr const& user_context, StatementIndex c
MySqlBinding::createString(user_context->str())
});
MySqlBindingCollection out_bindings({
MySqlBinding::createString(128)
MySqlBinding::createString(LIMITS_TEXT_MAX_LEN)
});
// Execute the select.