From 5dd91c7b80443c1f0e747088159c4d8b78d1856d Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 24 Dec 2015 04:13:24 +0000 Subject: SQLite files prefixed with sqlite- --- libsqlitepp/modifycommand.cpp | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 libsqlitepp/modifycommand.cpp (limited to 'libsqlitepp/modifycommand.cpp') diff --git a/libsqlitepp/modifycommand.cpp b/libsqlitepp/modifycommand.cpp deleted file mode 100644 index 1b44cf4..0000000 --- a/libsqlitepp/modifycommand.cpp +++ /dev/null @@ -1,31 +0,0 @@ -#include "modifycommand.h" -#include "error.h" -#include -#include "connection.h" - -SQLite::ModifyCommand::ModifyCommand(const Connection * conn, const std::string & sql) : - DB::Command(sql), - DB::ModifyCommand(sql), - SQLite::Command(conn, sql) -{ -} - -SQLite::ModifyCommand::~ModifyCommand() -{ -} - -unsigned int -SQLite::ModifyCommand::execute(bool anc) -{ - if (sqlite3_step(stmt) != SQLITE_DONE) { - sqlite3_reset(stmt); - throw Error(sqlite3_errmsg(c->db)); - } - unsigned int rows = sqlite3_changes(c->db); - sqlite3_reset(stmt); - if (rows == 0 && !anc) { - throw Error("No rows affected"); - } - return rows; -} - -- cgit v1.2.3