diff --git a/include/SQLiteCpp/Statement.h b/include/SQLiteCpp/Statement.h index 610b784..231c8e0 100644 --- a/include/SQLiteCpp/Statement.h +++ b/include/SQLiteCpp/Statement.h @@ -468,7 +468,7 @@ private: { if (false == mbOk) { - throw SQLite::Exception("No row to get a column from. executeStep() was not called or did not returned true."); + throw SQLite::Exception("No row to get a column from. executeStep() was not called, or returned false."); } } diff --git a/src/Statement.cpp b/src/Statement.cpp index 226e526..86e5919 100644 --- a/src/Statement.cpp +++ b/src/Statement.cpp @@ -91,7 +91,8 @@ void Statement::bind(const int aIndex, const double& aValue) // Bind a string value to a parameter "?", "?NNN", ":VVV", "@VVV" or "$VVV" in the SQL prepared statement void Statement::bind(const int aIndex, const std::string& aValue) { - const int ret = sqlite3_bind_text(mStmtPtr, aIndex, aValue.c_str(), static_cast(aValue.size()), SQLITE_TRANSIENT); + const int ret = sqlite3_bind_text(mStmtPtr, aIndex, aValue.c_str(), + static_cast(aValue.size()), SQLITE_TRANSIENT); check(ret); } @@ -145,7 +146,8 @@ void Statement::bind(const char* apName, const double& aValue) void Statement::bind(const char* apName, const std::string& aValue) { const int index = sqlite3_bind_parameter_index(mStmtPtr, apName); - const int ret = sqlite3_bind_text(mStmtPtr, index, aValue.c_str(), static_cast(aValue.size()), SQLITE_TRANSIENT); + const int ret = sqlite3_bind_text(mStmtPtr, index, aValue.c_str(), + static_cast(aValue.size()), SQLITE_TRANSIENT); check(ret); }