mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-31 05:55:28 +00:00
[1283] Remove toText() calls where IOAddress should be used directly
This commit is contained in:
@@ -1809,12 +1809,12 @@ MySqlLeaseMgr::updateLeaseCommon(StatementIndex stindex, MYSQL_BIND* bind,
|
||||
int affected_rows = mysql_stmt_affected_rows(statements_[stindex]);
|
||||
if (affected_rows == 0) {
|
||||
isc_throw(NoSuchLease, "unable to update lease for address " <<
|
||||
lease->addr_.toText() << " as it does not exist");
|
||||
lease->addr_ << " as it does not exist");
|
||||
} else if (affected_rows > 1) {
|
||||
// Should not happen - primary key constraint should only have selected
|
||||
// one row.
|
||||
isc_throw(DbOperationError, "apparently updated more than one lease "
|
||||
"that had the address " << lease->addr_.toText());
|
||||
"that had the address " << lease->addr_);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user