diff --git a/examples/example1/main.cpp b/examples/example1/main.cpp index a8296c1..494de42 100644 --- a/examples/example1/main.cpp +++ b/examples/example1/main.cpp @@ -83,6 +83,9 @@ private: int main () { + std::cout << "SQlite3 version " << SQLITE_VERSION << std::endl; + std::cout << "SQliteC++ version " << SQLITECPP_VERSION << std::endl; + //////////////////////////////////////////////////////////////////////////// // Very basic first example (1/7) : try diff --git a/include/SQLiteCpp/Database.h b/include/SQLiteCpp/Database.h index 5eb5154..65a2c96 100644 --- a/include/SQLiteCpp/Database.h +++ b/include/SQLiteCpp/Database.h @@ -337,7 +337,7 @@ private: /** * @brief Check if aRet equal SQLITE_OK, else throw a SQLite::Exception with the SQLite error message */ - inline void Database::check(const int aRet) const + inline void check(const int aRet) const { if (SQLITE_OK != aRet) { diff --git a/tests/Database_test.cpp b/tests/Database_test.cpp index a693e3b..5414ef1 100644 --- a/tests/Database_test.cpp +++ b/tests/Database_test.cpp @@ -21,7 +21,7 @@ namespace SQLite /// definition of the assertion handler enabled when SQLITECPP_ENABLE_ASSERT_HANDLER is defined in the project (CMakeList.txt) void assertion_failed(const char* apFile, const long apLine, const char* apFunc, const char* apExpr, const char* apMsg) { - // TODO test that this assertion callback get called + // TODO: test that this assertion callback get called std::cout << "assertion_failed(" << apFile << ", " << apLine << ", " << apFunc << ", " << apExpr << ", " << apMsg << ")\n"; } } @@ -215,7 +215,7 @@ TEST(Database, execException) { // exception with SQL error: "No row to get a column from" EXPECT_THROW(db.execAndGet("SELECT weight FROM test WHERE value=\"second\""), SQLite::Exception); - // Add a row with more values than columns in the table: "table test has 3 columns but 4 values were supplied" + // Add a row with more values than columns in the table: "table test has 3 columns but 4 values were supplied" EXPECT_THROW(db.exec("INSERT INTO test VALUES (NULL, \"first\", 123, 0.123)"), SQLite::Exception); EXPECT_EQ(SQLITE_ERROR, db.getErrorCode()); EXPECT_EQ(SQLITE_ERROR, db.getExtendedErrorCode());