// ... and get the data
Lease4Collection result;
- getLeaseCollection(GET_LEASE4_HOSTNAME, inbind, result);
+
+ // Get a context
+ MySqlLeaseContextAlloc get_context(*this);
+ MySqlLeaseContextPtr ctx = get_context.ctx_;
+
+ getLeaseCollection(ctx, GET_LEASE4_HOSTNAME, inbind, result);
return (result);
}
// ... and get the data
Lease6Collection result;
- getLeaseCollection(GET_LEASE6_HOSTNAME, inbind, result);
+
+ // Get a context
+ MySqlLeaseContextAlloc get_context(*this);
+ MySqlLeaseContextPtr ctx = get_context.ctx_;
+
+ getLeaseCollection(ctx, GET_LEASE6_HOSTNAME, inbind, result);
return (result);
}