git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added modification time for session traffic.
[stg.git]
/
projects
/
stargazer
/
plugins
/
store
/
postgresql
/
postgresql_store.cpp
diff --git
a/projects/stargazer/plugins/store/postgresql/postgresql_store.cpp
b/projects/stargazer/plugins/store/postgresql/postgresql_store.cpp
index aabce23b4dd396b36568f5aae8f752b453ba8d2a..37ff6dbdda10207f30a81ca520b8cc0234b1e6a0 100644
(file)
--- a/
projects/stargazer/plugins/store/postgresql/postgresql_store.cpp
+++ b/
projects/stargazer/plugins/store/postgresql/postgresql_store.cpp
@@
-96,15
+96,15
@@
std::vector<PARAM_VALUE>::iterator i;
for(i = settings.moduleParams.begin(); i != settings.moduleParams.end(); ++i)
{
std::string param(ToLower(i->param));
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());
server = *(i->value.begin());
- else if (
s
== "database")
+ else if (
param
== "database")
database = *(i->value.begin());
database = *(i->value.begin());
- else if (
s
== "user")
+ else if (
param
== "user")
user = *(i->value.begin());
user = *(i->value.begin());
- else if (
s
== "password")
+ else if (
param
== "password")
password = *(i->value.begin());
password = *(i->value.begin());
- else if (
s
== "retries")
+ else if (
param
== "retries")
if (str2x(*(i->value.begin()), retries))
{
strError = "Invalid 'retries' value";
if (str2x(*(i->value.begin()), retries))
{
strError = "Invalid 'retries' value";
@@
-224,6
+224,8
@@
if (CommitTransaction())
return -1;
}
return -1;
}
+logger("POSTGRESQL_STORE: Current DB schema version: %d", version);
+
return 0;
}
//-----------------------------------------------------------------------------
return 0;
}
//-----------------------------------------------------------------------------