From c44a8344b51fce4348e0b2d31111bf38ed554496 Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Sat, 18 Dec 2010 16:17:52 +0200 Subject: [PATCH] =?utf8?q?=D0=97=D0=BC=D1=96=D0=BD=D0=B5=D0=BD=D0=BE=20?= =?utf8?q?=D0=BF=D0=BE=D1=80=D1=8F=D0=B4=D0=BE=D0=BA=20=D1=81=D0=BB=D1=96?= =?utf8?q?=D0=B4=D1=83=D0=B2=D0=B0=D0=BD=D0=BD=D1=8F=20=D0=BC=D0=B5=D1=82?= =?utf8?q?=D0=BE=D0=B4=D1=96=D0=B2=20=D1=96=20=D1=87=D0=BB=D0=B5=D0=BD?= =?utf8?q?=D1=96=D0=B2=20=D0=BA=D0=BB=D0=B0=D1=81=D1=83=20POSTGRESQL=5FSTO?= =?utf8?q?RE?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../store/postgresql/postgresql_store.h | 27 +++++++++---------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/projects/stargazer/plugins/store/postgresql/postgresql_store.h b/projects/stargazer/plugins/store/postgresql/postgresql_store.h index a731fbf9..ea2ec4f3 100644 --- a/projects/stargazer/plugins/store/postgresql/postgresql_store.h +++ b/projects/stargazer/plugins/store/postgresql/postgresql_store.h @@ -121,19 +121,6 @@ public: inline const string & GetStrError() const { return strError; }; inline const string & GetVersion() const { return versionString; }; private: - std::string versionString; - mutable std::string strError; - std::string server; - std::string database; - std::string user; - std::string password; - std::string clientEncoding; - MODULE_SETTINGS settings; - mutable pthread_mutex_t mutex; - mutable int version; - - PGconn * connection; - int StartTransaction() const; int CommitTransaction() const; int RollbackTransaction() const; @@ -154,9 +141,21 @@ private: int Connect(); int Reset() const; int CheckVersion() const; + + std::string versionString; + mutable std::string strError; + std::string server; + std::string database; + std::string user; + std::string password; + std::string clientEncoding; + MODULE_SETTINGS settings; + mutable pthread_mutex_t mutex; + mutable int version; + + PGconn * connection; }; extern const volatile time_t stgTime; #endif //POSTGRESQL_STORE_H - -- 2.44.2