diff options
author | Peter Powell <petpow@saberuk.com> | 2019-11-13 12:58:18 +0000 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2019-11-13 12:58:18 +0000 |
commit | 43fb2f9972de22cafb93f2a8a67039176095f4c0 (patch) | |
tree | 010ddba2a333fdd8dea2aea544b0e49c1490b24c /src/modules/extra/m_pgsql.cpp | |
parent | 78a72b90b0213f774d3a65de093c9b61f2abe210 (diff) |
Add GetId() to the SQL::Provider class.
Diffstat (limited to 'src/modules/extra/m_pgsql.cpp')
-rw-r--r-- | src/modules/extra/m_pgsql.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/modules/extra/m_pgsql.cpp b/src/modules/extra/m_pgsql.cpp index 37cf92704..b0f0b4597 100644 --- a/src/modules/extra/m_pgsql.cpp +++ b/src/modules/extra/m_pgsql.cpp @@ -176,7 +176,11 @@ class SQLConn : public SQL::Provider, public EventHandler QueueItem qinprog; /* If there is currently a query in progress */ SQLConn(Module* Creator, ConfigTag* tag) - : SQL::Provider(Creator, "SQL/" + tag->getString("id")), conf(tag), sql(NULL), status(CWRITE), qinprog(NULL, "") + : SQL::Provider(Creator, tag->getString("id")) + , conf(tag) + , sql(NULL) + , status(CWRITE) + , qinprog(NULL, "") { if (!DoConnect()) { |