]> git.stg.codes - stg.git/commitdiff
Fixed storing relation between users and services.
authorMaxim Mamontov <faust.madf@gmail.com>
Thu, 29 May 2014 20:03:34 +0000 (23:03 +0300)
committerMaxim Mamontov <faust.madf@gmail.com>
Thu, 29 May 2014 20:03:34 +0000 (23:03 +0300)
projects/stargazer/plugins/store/postgresql/postgresql_store_users.cpp

index 3331a07d411692bfe957d6085b8e968afc903a75..66e452a9b9e4128bf0974a7eb06983cdbbead05c 100644 (file)
@@ -564,7 +564,7 @@ if (PQresultStatus(result) != PGRES_COMMAND_OK)
 
 PQclear(result);
 
 
 PQclear(result);
 
-if (SaveUserServices(uid, conf.service))
+if (SaveUserServices(uid, conf.services))
     {
     printfd(__FILE__, "POSTGRESQL_STORE::SaveUserConf(): 'Failed to save user's services'\n");
     if (RollbackTransaction())
     {
     printfd(__FILE__, "POSTGRESQL_STORE::SaveUserConf(): 'Failed to save user's services'\n");
     if (RollbackTransaction())
@@ -883,7 +883,7 @@ tuples = PQntuples(result);
 
 for (int i = 0; i < tuples; ++i)
     {
 
 for (int i = 0; i < tuples; ++i)
     {
-    conf->service.push_back(PQgetvalue(result, i, 0));
+    conf->services.push_back(PQgetvalue(result, i, 0));
     }
 
 PQclear(result);
     }
 
 PQclear(result);