2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-30 21:45:37 +00:00

[3882a] Added new getDBVersion() class method

This commit is contained in:
Francis Dupont
2015-06-19 14:30:51 +02:00
parent 07dcd39f99
commit 52fe5e23eb
8 changed files with 44 additions and 0 deletions

View File

@@ -1265,6 +1265,15 @@ MySqlLeaseMgr::~MySqlLeaseMgr() {
// closed in the destructor of the mysql_ member variable.
}
std::string
MySqlLeaseMgr::getDBVersion() {
std::stringstream tmp;
tmp << "MySQL backend " << CURRENT_VERSION_VERSION;
tmp << "." << CURRENT_VERSION_MINOR;
tmp << " library " << mysql_get_client_info();
return (tmp.str());
}
// Time conversion methods.
//