From b0a5b94ddfec22d587d58959984c184a54c87c41 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 4 May 2017 21:25:32 +0100 Subject: Update to v1.1.x interface --- libmysqlpp/embeddedmy-mock.cpp | 4 ++-- libmysqlpp/my-connection.cpp | 2 +- libmysqlpp/my-connection.h | 2 +- libmysqlpp/my-opts.h | 1 + 4 files changed, 5 insertions(+), 4 deletions(-) (limited to 'libmysqlpp') diff --git a/libmysqlpp/embeddedmy-mock.cpp b/libmysqlpp/embeddedmy-mock.cpp index 9e66bb3..dfa8cbe 100644 --- a/libmysqlpp/embeddedmy-mock.cpp +++ b/libmysqlpp/embeddedmy-mock.cpp @@ -32,14 +32,14 @@ namespace MySQL { auto path = mockDbPath(); embeddedServer = Server::getMock(path); Connection initialize(embeddedServer.get(), "mysql"); - initialize.execute("CREATE DATABASE " + dbname); + initialize.execute("CREATE DATABASE " + dbname, NULL); } void Mock::DropDatabase() const { Connection initialize(embeddedServer.get(), "mysql"); - initialize.execute("DROP DATABASE " + dbname); + initialize.execute("DROP DATABASE " + dbname, NULL); } boost::filesystem::path diff --git a/libmysqlpp/my-connection.cpp b/libmysqlpp/my-connection.cpp index 2be253b..d22312d 100644 --- a/libmysqlpp/my-connection.cpp +++ b/libmysqlpp/my-connection.cpp @@ -125,7 +125,7 @@ MySQL::Connection::newModifyCommand(const std::string & sql, const DB::CommandOp } void -MySQL::Connection::execute(const std::string & sql) +MySQL::Connection::execute(const std::string & sql, const DB::CommandOptions *) { if (mysql_query(&conn, sql.c_str())) { throw Error(&conn); diff --git a/libmysqlpp/my-connection.h b/libmysqlpp/my-connection.h index 36e9388..27f5312 100644 --- a/libmysqlpp/my-connection.h +++ b/libmysqlpp/my-connection.h @@ -35,7 +35,7 @@ namespace MySQL { size_t bulkUploadData(const char *, size_t) const override; int64_t insertId() override; - void execute(const std::string &) override; + void execute(const std::string &, const DB::CommandOptions *) override; mutable MYSQL conn; diff --git a/libmysqlpp/my-opts.h b/libmysqlpp/my-opts.h index e444fa8..3abd271 100644 --- a/libmysqlpp/my-opts.h +++ b/libmysqlpp/my-opts.h @@ -3,6 +3,7 @@ #include #include +#include #include namespace MySQL { -- cgit v1.2.3