summaryrefslogtreecommitdiff
path: root/libmysqlpp/my-connection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libmysqlpp/my-connection.cpp')
-rw-r--r--libmysqlpp/my-connection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmysqlpp/my-connection.cpp b/libmysqlpp/my-connection.cpp
index e5193ac..97924e3 100644
--- a/libmysqlpp/my-connection.cpp
+++ b/libmysqlpp/my-connection.cpp
@@ -200,7 +200,7 @@ MySQL::Connection::beginBulkUpload(const char * table, const char * extra)
auto sql = MySQLConnectionLoadData::get(table, extra);
mysql_send_query(&conn, sql.c_str(), sql.length());
- ctx = boost::shared_ptr<LoadContext>(new MySQL::LoadContext(&conn));
+ ctx = std::make_unique<LoadContext>(&conn);
mysql_set_local_infile_handler(&conn, LoadContext::local_infile_init, LoadContext::local_infile_read,
LoadContext::local_infile_end, LoadContext::local_infile_error, ctx.get());