diff options
-rw-r--r-- | libsqlitepp/sqlite-modifycommand.h | 2 | ||||
-rw-r--r-- | libsqlitepp/sqlite-selectcommand.cpp | 4 | ||||
-rw-r--r-- | libsqlitepp/sqlite-selectcommand.h | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/libsqlitepp/sqlite-modifycommand.h b/libsqlitepp/sqlite-modifycommand.h index 657639b..c71dd1f 100644 --- a/libsqlitepp/sqlite-modifycommand.h +++ b/libsqlitepp/sqlite-modifycommand.h @@ -11,7 +11,7 @@ namespace SQLite { ModifyCommand(const Connection *, const std::string & sql); virtual ~ModifyCommand(); - unsigned int execute(bool); + unsigned int execute(bool) override; private: void prepare() const; diff --git a/libsqlitepp/sqlite-selectcommand.cpp b/libsqlitepp/sqlite-selectcommand.cpp index ca72a9f..0f36653 100644 --- a/libsqlitepp/sqlite-selectcommand.cpp +++ b/libsqlitepp/sqlite-selectcommand.cpp @@ -14,11 +14,11 @@ namespace SQLite { { } - bool isNull() const { + bool isNull() const override { return (SQLITE_NULL == sqlite3_column_type(stmt, colNo)); } - void apply(DB::HandleField & h) const { + void apply(DB::HandleField & h) const override { switch (sqlite3_column_type(stmt, colNo)) { case SQLITE_INTEGER: h.integer(sqlite3_column_int64(stmt, colNo)); diff --git a/libsqlitepp/sqlite-selectcommand.h b/libsqlitepp/sqlite-selectcommand.h index c795018..8c9b04d 100644 --- a/libsqlitepp/sqlite-selectcommand.h +++ b/libsqlitepp/sqlite-selectcommand.h @@ -11,8 +11,8 @@ namespace SQLite { public: SelectCommand(const Connection *, const std::string & sql); - bool fetch(); - void execute(); + bool fetch() override; + void execute() override; }; } |