@@ -111,7 +111,6 @@ ocpp::types::DeleteCertificateStatusEnumType CaCertificatesDatabase::deleteCerti
111111 if (!in_use)
112112 {
113113 // Delete the requested certificate
114- m_delete_query->reset ();
115114 m_delete_query->bind (0 , id);
116115 if (m_delete_query->exec ())
117116 {
@@ -144,7 +143,6 @@ void CaCertificatesDatabase::getCertificateList(ocpp::types::CertificateUseEnumT
144143 if (m_list_query)
145144 {
146145 // List certificates
147- m_list_query->reset ();
148146 m_list_query->bind (0 , static_cast <unsigned int >(type));
149147 m_list_query->bind (1 , static_cast <int64_t >(std::numeric_limits<std::time_t >::max ()));
150148 m_list_query->bind (2 , 0 );
@@ -175,7 +173,6 @@ std::string CaCertificatesDatabase::getCertificateListPem(ocpp::types::Certifica
175173 if (m_list_query)
176174 {
177175 // List certificates
178- m_list_query->reset ();
179176 m_list_query->bind (0 , static_cast <unsigned int >(type));
180177 m_list_query->bind (1 , static_cast <int64_t >(DateTime::now ().timestamp ()));
181178 m_list_query->bind (2 , static_cast <int64_t >(DateTime::now ().timestamp ()));
@@ -215,7 +212,6 @@ unsigned int CaCertificatesDatabase::getCertificateCount(ocpp::types::Certificat
215212 validity_from = std::numeric_limits<std::time_t >::max ();
216213 validity_to = 0 ;
217214 }
218- m_count_query->reset ();
219215 m_count_query->bind (0 , static_cast <unsigned int >(type));
220216 m_count_query->bind (1 , static_cast <int64_t >(validity_from));
221217 m_count_query->bind (2 , static_cast <int64_t >(validity_to));
@@ -247,7 +243,6 @@ bool CaCertificatesDatabase::addCertificate(ocpp::types::CertificateUseEnumType
247243 if (!findCertificate (hash_data, id, in_use))
248244 {
249245 // Add certificate
250- m_insert_query->reset ();
251246 m_insert_query->bind (0 , static_cast <unsigned int >(type));
252247 m_insert_query->bind (1 , static_cast <int64_t >(certificate.validityFrom ()));
253248 m_insert_query->bind (2 , static_cast <int64_t >(certificate.validityTo ()));
@@ -284,7 +279,6 @@ bool CaCertificatesDatabase::findCertificate(const ocpp::types::CertificateHashD
284279 if (m_find_query)
285280 {
286281 // Look for the requested certificate
287- m_find_query->reset ();
288282 m_find_query->bind (0 , certificate.issuerNameHash );
289283 m_find_query->bind (1 , certificate.issuerKeyHash );
290284 m_find_query->bind (2 , certificate.serialNumber );
0 commit comments