@@ -111,7 +111,6 @@ ocpp::types::DeleteCertificateStatusEnumType CaCertificatesDatabase::deleteCerti
111
111
if (!in_use)
112
112
{
113
113
// Delete the requested certificate
114
- m_delete_query->reset ();
115
114
m_delete_query->bind (0 , id);
116
115
if (m_delete_query->exec ())
117
116
{
@@ -144,7 +143,6 @@ void CaCertificatesDatabase::getCertificateList(ocpp::types::CertificateUseEnumT
144
143
if (m_list_query)
145
144
{
146
145
// List certificates
147
- m_list_query->reset ();
148
146
m_list_query->bind (0 , static_cast <unsigned int >(type));
149
147
m_list_query->bind (1 , static_cast <int64_t >(std::numeric_limits<std::time_t >::max ()));
150
148
m_list_query->bind (2 , 0 );
@@ -175,7 +173,6 @@ std::string CaCertificatesDatabase::getCertificateListPem(ocpp::types::Certifica
175
173
if (m_list_query)
176
174
{
177
175
// List certificates
178
- m_list_query->reset ();
179
176
m_list_query->bind (0 , static_cast <unsigned int >(type));
180
177
m_list_query->bind (1 , static_cast <int64_t >(DateTime::now ().timestamp ()));
181
178
m_list_query->bind (2 , static_cast <int64_t >(DateTime::now ().timestamp ()));
@@ -215,7 +212,6 @@ unsigned int CaCertificatesDatabase::getCertificateCount(ocpp::types::Certificat
215
212
validity_from = std::numeric_limits<std::time_t >::max ();
216
213
validity_to = 0 ;
217
214
}
218
- m_count_query->reset ();
219
215
m_count_query->bind (0 , static_cast <unsigned int >(type));
220
216
m_count_query->bind (1 , static_cast <int64_t >(validity_from));
221
217
m_count_query->bind (2 , static_cast <int64_t >(validity_to));
@@ -247,7 +243,6 @@ bool CaCertificatesDatabase::addCertificate(ocpp::types::CertificateUseEnumType
247
243
if (!findCertificate (hash_data, id, in_use))
248
244
{
249
245
// Add certificate
250
- m_insert_query->reset ();
251
246
m_insert_query->bind (0 , static_cast <unsigned int >(type));
252
247
m_insert_query->bind (1 , static_cast <int64_t >(certificate.validityFrom ()));
253
248
m_insert_query->bind (2 , static_cast <int64_t >(certificate.validityTo ()));
@@ -284,7 +279,6 @@ bool CaCertificatesDatabase::findCertificate(const ocpp::types::CertificateHashD
284
279
if (m_find_query)
285
280
{
286
281
// Look for the requested certificate
287
- m_find_query->reset ();
288
282
m_find_query->bind (0 , certificate.issuerNameHash );
289
283
m_find_query->bind (1 , certificate.issuerKeyHash );
290
284
m_find_query->bind (2 , certificate.serialNumber );
0 commit comments