Re: pgAdmin - no_spool - Mailing list pgadmin-support

From Dave Page
Subject Re: pgAdmin - no_spool
Date
Msg-id 937d27e10907010207iafcc342g1ae0f6d70e463af5@mail.gmail.com
Whole thread Raw
In response to pgAdmin - no_spool  (Pedro Doria Meunier <pdoria@netmadeira.com>)
Responses Re: pgAdmin - no_spool
List pgadmin-support
On Wed, Jul 1, 2009 at 9:12 AM, Pedro Doria
Meunier<pdoria@netmadeira.com> wrote:
> Hi Dave,
>
> Could you please tell me why when I click on a cluster pgAdmin
> exhibits a dialog stating:
> "Column not found in pgSet: no_spool" ?
>
> - pgAdmin version 1.10.0 Beta2 rev. 7749
> - Slony ver 2.0.2
> - Master on a remote server
> - Slony-I not installed on localhost (could it be it?!)

I guess noone tried Slony 2.0 yet :-(. Please try the patch below:

Index: pgadmin/slony/slNode.cpp
===================================================================
--- pgadmin/slony/slNode.cpp    (revision 7945)
+++ pgadmin/slony/slNode.cpp    (working copy)
@@ -287,7 +287,10 @@            node->iSetComment(nodes->GetVal(wxT("no_comment")));
            if (collection->GetCluster()->ClusterMinimumVersion(1,1))
-                node->iSetSpool(nodes->GetBool(wxT("no_spool")));
+            {
+                if (nodes->HasColumn(wxT("no_spool")))
+                    node->iSetSpool(nodes->GetBool(wxT("no_spool")));
+            }
            if (browser)            {



-- 
Dave Page
EnterpriseDB UK:   http://www.enterprisedb.com


pgadmin-support by date:

Previous
From: Pedro Doria Meunier
Date:
Subject: pgAdmin - no_spool
Next
From: Pedro Doria Meunier
Date:
Subject: Re: pgAdmin - no_spool