X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/dd4d8887d9e281e81c4cd511026ed44e7dcf68b4..e9cb0683c0b33d8458c1d9b2558bbeb5d101e680:/projects/stargazer/plugins/store/postgresql/postgresql_store.cpp?ds=sidebyside diff --git a/projects/stargazer/plugins/store/postgresql/postgresql_store.cpp b/projects/stargazer/plugins/store/postgresql/postgresql_store.cpp index aabce23b..5e2d8ae6 100644 --- a/projects/stargazer/plugins/store/postgresql/postgresql_store.cpp +++ b/projects/stargazer/plugins/store/postgresql/postgresql_store.cpp @@ -96,15 +96,15 @@ std::vector::iterator i; for(i = settings.moduleParams.begin(); i != settings.moduleParams.end(); ++i) { std::string param(ToLower(i->param)); - if (s == "server") + if (param == "server") server = *(i->value.begin()); - else if (s == "database") + else if (param == "database") database = *(i->value.begin()); - else if (s == "user") + else if (param == "user") user = *(i->value.begin()); - else if (s == "password") + else if (param == "password") password = *(i->value.begin()); - else if (s == "retries") + else if (param == "retries") if (str2x(*(i->value.begin()), retries)) { strError = "Invalid 'retries' value";