]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/store/postgresql/postgresql_store.cpp
Implemented daily fee charge with backward compatibility.
[stg.git] / projects / stargazer / plugins / store / postgresql / postgresql_store.cpp
index 19e3efec8941797e64a64f181b607f5bb056f47a..51eec8f414626463cb72a99b61873e44d5309283 100644 (file)
@@ -46,6 +46,7 @@
 
 #include "stg/module_settings.h"
 #include "stg/plugin_creator.h"
+#include "stg/logger.h"
 #include "postgresql_store_utils.h"
 #include "postgresql_store.h"
 
@@ -60,13 +61,18 @@ return pqStoreeCreator.GetPlugin();
 //-----------------------------------------------------------------------------
 POSTGRESQL_STORE::POSTGRESQL_STORE()
     : versionString("postgresql_store v.1.3"),
+      strError(),
       server("localhost"),
       database("stargazer"),
       user("stg"),
       password("123456"),
+      clientEncoding("KOI8"),
+      settings(),
+      mutex(),
       version(0),
       retries(3),
-      connection(NULL)
+      connection(NULL),
+      WriteServLog(GetStgLogger())
 {
 pthread_mutex_init(&mutex, NULL);
 }
@@ -227,6 +233,8 @@ if (CommitTransaction())
     return -1;
     }
 
+WriteServLog("POSTGRESQL_STORE: Current DB schema version: %d", version);
+
 return 0;
 }
 //-----------------------------------------------------------------------------