From 7390772f1d864c2312489a37f2bdcbbcf2b88d74 Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Thu, 30 Dec 2010 14:24:44 +0200 Subject: [PATCH 1/1] =?utf8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?utf8?q?=D0=B5=D0=BD=D0=B0=20=D1=81=D1=82=D0=B0=D1=80=D0=B0=D1=8F=20?= =?utf8?q?=D0=BE=D1=88=D0=B8=D0=B1=D0=BA=D0=B0=20=D1=81=20"=D0=BF=D0=B5?= =?utf8?q?=D1=80=D0=B5=D0=BF=D1=83=D1=82=D1=8B=D0=B2=D0=B0=D0=BD=D0=B8?= =?utf8?q?=D0=B5=D0=BC"=20=D0=BF=D0=BE=D0=BB=D0=B5=D0=B9=20userdata?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../plugins/store/postgresql/postgresql_store_users.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/projects/stargazer/plugins/store/postgresql/postgresql_store_users.cpp b/projects/stargazer/plugins/store/postgresql/postgresql_store_users.cpp index 2c66cc7f..7d8b3b93 100644 --- a/projects/stargazer/plugins/store/postgresql/postgresql_store_users.cpp +++ b/projects/stargazer/plugins/store/postgresql/postgresql_store_users.cpp @@ -906,7 +906,11 @@ for (int i = 0; i < tuples; ++i) } else { - conf->userdata[i] = PQgetvalue(result, i, 1); + if (num < USERDATA_NUM && + num >= 0) + { + conf->userdata[num] = PQgetvalue(result, i, 1); + } } } -- 2.44.2