]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/store/postgresql/postgresql_store.cpp
Added SMUX reconnect. Fixes #18.
[stg.git] / projects / stargazer / plugins / store / postgresql / postgresql_store.cpp
index 19e3efec8941797e64a64f181b607f5bb056f47a..7c79baff6b6df487391136caf3356d9f94db4b11 100644 (file)
@@ -60,13 +60,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),
+      logger(GetPluginLogger(GetStgLogger(), "store_postgresql"))
 {
 pthread_mutex_init(&mutex, NULL);
 }