summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libdbpp/connection.cpp2
-rw-r--r--libdbpp/connection.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/libdbpp/connection.cpp b/libdbpp/connection.cpp
index 91fdf6a..f7c7b53 100644
--- a/libdbpp/connection.cpp
+++ b/libdbpp/connection.cpp
@@ -168,7 +168,7 @@ DB::Connection::bulkUploadData(FILE * in) const
AdHocFormatter(PluginLibraryFormat, "libdbpp-%?.so");
std::optional<std::string>
-DB::Connection::resolvePlugin(const std::type_info &, const std::string & name)
+DB::Connection::resolvePlugin(const std::type_info &, const std::string_view & name)
{
return PluginLibraryFormat::get(name);
}
diff --git a/libdbpp/connection.h b/libdbpp/connection.h
index e1fb2d2..00d963a 100644
--- a/libdbpp/connection.h
+++ b/libdbpp/connection.h
@@ -147,7 +147,7 @@ namespace DB {
PatchResult patchTable(TablePatch * tp);
/// AdHoc plugin resolver helper for database connectors.
- static std::optional<std::string> resolvePlugin(const std::type_info &, const std::string &);
+ static std::optional<std::string> resolvePlugin(const std::type_info &, const std::string_view &);
protected:
/// Create a new connection.