summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-12-29 04:22:30 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2015-12-29 06:00:07 +0000
commitbc6fa4baefb2444d826082c093189997f1fdb8ca (patch)
treeb6d2b1f3b3dcdfce6b8bc1bbe94d54c6a355106e
parentReshuffle and add new exceptions (diff)
downloadlibdbpp-mysql-bc6fa4baefb2444d826082c093189997f1fdb8ca.tar.bz2
libdbpp-mysql-bc6fa4baefb2444d826082c093189997f1fdb8ca.tar.xz
libdbpp-mysql-bc6fa4baefb2444d826082c093189997f1fdb8ca.zip
Default (not supported) bulk upload implementation
-rw-r--r--libmysqlpp/my-connection.cpp4
-rw-r--r--libmysqlpp/my-connection.h4
2 files changed, 4 insertions, 4 deletions
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;