From 43fb2f9972de22cafb93f2a8a67039176095f4c0 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Wed, 13 Nov 2019 12:58:18 +0000 Subject: Add GetId() to the SQL::Provider class. --- src/modules/extra/m_sqlite3.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/modules/extra/m_sqlite3.cpp') diff --git a/src/modules/extra/m_sqlite3.cpp b/src/modules/extra/m_sqlite3.cpp index 8efdf876f..405d4b783 100644 --- a/src/modules/extra/m_sqlite3.cpp +++ b/src/modules/extra/m_sqlite3.cpp @@ -112,7 +112,9 @@ class SQLConn : public SQL::Provider reference config; public: - SQLConn(Module* Parent, ConfigTag* tag) : SQL::Provider(Parent, "SQL/" + tag->getString("id")), config(tag) + SQLConn(Module* Parent, ConfigTag* tag) + : SQL::Provider(Parent, tag->getString("id")) + , config(tag) { std::string host = tag->getString("hostname"); if (sqlite3_open_v2(host.c_str(), &conn, SQLITE_OPEN_READWRITE, 0) != SQLITE_OK) -- cgit v1.3.1-10-gc9f91