/// lease object.
namespace {
++
/// @brief Maximum length of the hostname stored in DNS.
///
/// This length is restricted by the length of the domain-name carried
"prefix_len = ?, fqdn_fwd = ?, fqdn_rev = ?, "
"hostname = ?, hwaddr = ?, hwtype = ?, hwaddr_source = ?, "
"state = ? "
- "WHERE address = ?"}
+ "WHERE address = ?"},
+ {MySqlLeaseMgr::RECOUNT_LEASE4_STATS,
+ "SELECT subnet_id, state, count(state) as state_count "
+ " FROM lease4 GROUP BY subnet_id, state ORDER BY subnet_id"},
-
+ {MySqlLeaseMgr::RECOUNT_LEASE6_STATS,
+ "SELECT subnet_id, lease_type, state, count(state) as state_count"
+ " FROM lease6 GROUP BY subnet_id, lease_type, state "
- " ORDER BY subnet_id" },
-
- // End of list sentinel
- {MySqlLeaseMgr::NUM_STATEMENTS, NULL}
++ " ORDER BY subnet_id" }
+ }
};
};