Skip to content

Commit a1792fa

Browse files
committed
Removed redundant #includes and fixed spelling mistakes.
1 parent fd6e98e commit a1792fa

5 files changed

Lines changed: 9 additions & 13 deletions

File tree

Data/MySQL/include/Poco/Data/MySQL/Connector.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
#define Data_MySQL_Connector_INCLUDED
4141

4242

43-
#include "MySQL.h"
43+
#include "Poco/Data/MySQL/MySQL.h"
4444
#include "Poco/Data/Connector.h"
4545

4646

Data/MySQL/include/Poco/Data/MySQL/SessionHandle.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@
4242
#include <mysql.h>
4343
#include "Poco/Data/MySQL/MySQLException.h"
4444

45-
#include <vector>
46-
4745
namespace Poco {
4846
namespace Data {
4947
namespace MySQL {
@@ -87,7 +85,7 @@ class SessionHandle
8785
/// Commit transaction
8886

8987
void rollback();
90-
/// Rollback trabsaction
88+
/// Rollback transaction
9189

9290
operator MYSQL* ();
9391

Data/MySQL/include/Poco/Data/MySQL/StatementExecutor.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@
4242
#include <mysql.h>
4343
#include "Poco/Data/MySQL/MySQLException.h"
4444

45-
#include <vector>
46-
4745
namespace Poco {
4846
namespace Data {
4947
namespace MySQL {

Data/MySQL/src/Extractor.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ bool Extractor::extract(std::size_t pos, char& val)
143143
bool Extractor::extract(std::size_t pos, std::string& val)
144144
{
145145
if (_metadata.columnsReturned() <= pos)
146-
throw MySQLException("Extractor: attempt to extract more paremeters, than query result contain");
146+
throw MySQLException("Extractor: attempt to extract more parameters, than query result contain");
147147

148148
if (_metadata.isNull(static_cast<Poco::UInt32>(pos)))
149149
return false;
@@ -161,7 +161,7 @@ bool Extractor::extract(std::size_t pos, std::string& val)
161161
bool Extractor::extract(std::size_t pos, Poco::Data::BLOB& val)
162162
{
163163
if (_metadata.columnsReturned() <= pos)
164-
throw MySQLException("Extractor: attempt to extract more paremeters, than query result contain");
164+
throw MySQLException("Extractor: attempt to extract more parameters, than query result contain");
165165

166166
if (_metadata.isNull(static_cast<Poco::UInt32>(pos)))
167167
return false;
@@ -177,7 +177,7 @@ bool Extractor::extract(std::size_t pos, Poco::Data::BLOB& val)
177177
bool Extractor::extract(std::size_t pos, Poco::Data::CLOB& val)
178178
{
179179
if (_metadata.columnsReturned() <= pos)
180-
throw MySQLException("Extractor: attempt to extract more paremeters, than query result contain");
180+
throw MySQLException("Extractor: attempt to extract more parameters, than query result contain");
181181

182182
if (_metadata.isNull(static_cast<Poco::UInt32>(pos)))
183183
return false;
@@ -243,7 +243,7 @@ bool Extractor::isNull(std::size_t col, std::size_t row)
243243
poco_assert(row == POCO_DATA_INVALID_ROW);
244244

245245
if (_metadata.columnsReturned() <= col)
246-
throw MySQLException("Extractor: attempt to extract more paremeters, than query result contain");
246+
throw MySQLException("Extractor: attempt to extract more parameters, than query result contain");
247247

248248
if (_metadata.isNull(static_cast<Poco::UInt32>(col)))
249249
return true;

Data/include/Poco/Data/Statement.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -348,13 +348,13 @@ class Data_API Statement
348348
/// Returns true if statement is in a state that allows the internal storage to be modified.
349349

350350
Storage storage() const;
351-
/// Returns the internal storage type for the stamement.
351+
/// Returns the internal storage type for the statement.
352352

353353
void setStorage(const std::string& storage);
354-
/// Sets the internal storage type for the stamement.
354+
/// Sets the internal storage type for the statement.
355355

356356
const std::string& getStorage() const;
357-
/// Returns the internal storage type for the stamement.
357+
/// Returns the internal storage type for the statement.
358358

359359
std::size_t columnsExtracted(int dataSet = StatementImpl::USE_CURRENT_DATA_SET) const;
360360
/// Returns the number of columns returned for current data set.

0 commit comments

Comments
 (0)