From 2abcf45bb9b243d9405ad5c1858333039984c52b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Rombauts?= Date: Wed, 6 Jul 2016 21:41:04 +0200 Subject: [PATCH] Remove Column::errmsg() method : use Database or Statement equivalents --- include/SQLiteCpp/Column.h | 3 --- src/Column.cpp | 6 ------ 2 files changed, 9 deletions(-) diff --git a/include/SQLiteCpp/Column.h b/include/SQLiteCpp/Column.h index dbef68c..9d1ce25 100644 --- a/include/SQLiteCpp/Column.h +++ b/include/SQLiteCpp/Column.h @@ -233,9 +233,6 @@ public: } #endif - /// Return UTF-8 encoded English language explanation of the most recent error. - const char* errmsg() const; - private: Statement::Ptr mStmtPtr; //!< Shared Pointer to the prepared SQLite Statement Object int mIndex; //!< Index of the column in the row of result, starting at 0 diff --git a/src/Column.cpp b/src/Column.cpp index 81d61c4..3fd219b 100644 --- a/src/Column.cpp +++ b/src/Column.cpp @@ -106,12 +106,6 @@ int Column::getBytes() const noexcept // nothrow return sqlite3_column_bytes(mStmtPtr, mIndex); } -// Return UTF-8 encoded English language explanation of the most recent error. -const char* Column::errmsg() const -{ - return sqlite3_errmsg(mStmtPtr); -} - // Standard std::ostream inserter std::ostream& operator<<(std::ostream& aStream, const Column& aColumn) {