summaryrefslogtreecommitdiff
path: root/src/modules/extra/m_sqlite3.cpp
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2019-11-13 12:58:18 +0000
committerPeter Powell <petpow@saberuk.com>2019-11-13 12:58:18 +0000
commit43fb2f9972de22cafb93f2a8a67039176095f4c0 (patch)
tree010ddba2a333fdd8dea2aea544b0e49c1490b24c /src/modules/extra/m_sqlite3.cpp
parent78a72b90b0213f774d3a65de093c9b61f2abe210 (diff)
Add GetId() to the SQL::Provider class.
Diffstat (limited to 'src/modules/extra/m_sqlite3.cpp')
-rw-r--r--src/modules/extra/m_sqlite3.cpp4
1 files changed, 3 insertions, 1 deletions
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<ConfigTag> 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)