diff options
| author | 2019-11-13 12:58:18 +0000 | |
|---|---|---|
| committer | 2019-11-13 12:58:18 +0000 | |
| commit | 43fb2f9972de22cafb93f2a8a67039176095f4c0 (patch) | |
| tree | 010ddba2a333fdd8dea2aea544b0e49c1490b24c /src/modules/extra/m_mysql.cpp | |
| parent | Use case insensitive comparisons when checking for SSL rehashes. (diff) | |
Add GetId() to the SQL::Provider class.
Diffstat (limited to 'src/modules/extra/m_mysql.cpp')
| -rw-r--r-- | src/modules/extra/m_mysql.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/modules/extra/m_mysql.cpp b/src/modules/extra/m_mysql.cpp index dcdbe0004..a79ef01ad 100644 --- a/src/modules/extra/m_mysql.cpp +++ b/src/modules/extra/m_mysql.cpp @@ -284,8 +284,10 @@ class SQLConnection : public SQL::Provider Mutex lock; // This constructor creates an SQLConnection object with the given credentials, but does not connect yet. - SQLConnection(Module* p, ConfigTag* tag) : SQL::Provider(p, "SQL/" + tag->getString("id")), - config(tag), connection(NULL) + SQLConnection(Module* p, ConfigTag* tag) + : SQL::Provider(p, tag->getString("id")) + , config(tag) + , connection(NULL) { } |
