class MySqlOptionExchange {
private:
- /// @brief Number of columns in the tables holding options.
- static const size_t OPTION_COLUMNS = 11;
+ /// @brief Number of columns in the option tables holding bindable values.
+ static const size_t OPTION_COLUMNS = 10;
public:
user_context_(), user_context_len_(0), subnet_id_(SUBNET_ID_UNUSED),
host_id_(0), option_() {
- BOOST_STATIC_ASSERT(10 < OPTION_COLUMNS);
+ BOOST_STATIC_ASSERT(10 <= OPTION_COLUMNS);
}
/// @brief Creates binding array to insert option data into database.
static const int DHCP_CLIENT_CLASS_COL = 8;
static const int DHCP_SUBNET_ID_COL = 9;
static const int HOST_ID_COL = 10;
- static const int SCOPE_ID_COL = 11;
- /// @brief Number of columns in the tables holding options.
- static const size_t OPTION_COLUMNS = 12;
+ /// @brief Number of columns in the option tables holding bindable values.
+ static const size_t OPTION_COLUMNS = 11;
public:
columns_[DHCP_CLIENT_CLASS_COL] = "dhcp_client_class";
columns_[DHCP_SUBNET_ID_COL] = "dhcp_subnet_id";
columns_[HOST_ID_COL] = "host_id";
- columns_[SCOPE_ID_COL] = "scope_id";
- BOOST_STATIC_ASSERT(11 < OPTION_COLUMNS);
+ BOOST_STATIC_ASSERT(11 <= OPTION_COLUMNS);
}
/// @brief Creates binding array to insert option data into database.