From bc6fa4baefb2444d826082c093189997f1fdb8ca Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 29 Dec 2015 04:22:30 +0000 Subject: Default (not supported) bulk upload implementation --- libmysqlpp/my-connection.cpp | 4 ++-- libmysqlpp/my-connection.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'libmysqlpp') diff --git a/libmysqlpp/my-connection.cpp b/libmysqlpp/my-connection.cpp index 4aa0ab9..3afbe30 100644 --- a/libmysqlpp/my-connection.cpp +++ b/libmysqlpp/my-connection.cpp @@ -223,7 +223,7 @@ namespace MySQL { } void -MySQL::Connection::beginBulkUpload(const char * table, const char * extra) const +MySQL::Connection::beginBulkUpload(const char * table, const char * extra) { static char buf[BUFSIZ]; int len = snprintf(buf, BUFSIZ, "LOAD DATA LOCAL INFILE 'any' INTO TABLE %s %s", table, extra); @@ -238,7 +238,7 @@ MySQL::Connection::beginBulkUpload(const char * table, const char * extra) const } void -MySQL::Connection::endBulkUpload(const char * msg) const +MySQL::Connection::endBulkUpload(const char * msg) { ctx->loadBuf = NULL; ctx->loadBufLen = 0; diff --git a/libmysqlpp/my-connection.h b/libmysqlpp/my-connection.h index d52bc06..44b4b7c 100644 --- a/libmysqlpp/my-connection.h +++ b/libmysqlpp/my-connection.h @@ -31,8 +31,8 @@ namespace MySQL { DB::SelectCommand * newSelectCommand(const std::string & sql) const override; DB::ModifyCommand * newModifyCommand(const std::string & sql) const override; - void beginBulkUpload(const char *, const char *) const override; - void endBulkUpload(const char *) const override; + void beginBulkUpload(const char *, const char *) override; + void endBulkUpload(const char *) override; size_t bulkUploadData(const char *, size_t) const override; int64_t insertId() const override; -- cgit v1.2.3