Hi,
The Slony storenode function takes only two parameters in 2.0. It seems
their manual is out of date. Here is a patch to fix two dialogs who try
to execute this function.
Comments?
--
Guillaume.
http://www.postgresqlfr.org
http://dalibo.com
Index: pgadmin/slony/dlgRepCluster.cpp
===================================================================
--- pgadmin/slony/dlgRepCluster.cpp (révision 8146)
+++ pgadmin/slony/dlgRepCluster.cpp (copie de travail)
@@ -737,7 +737,7 @@
+ txtNodeID->GetValue() + wxT(", ")
+ qtDbString(txtNodeName->GetValue());
- if (StrToDouble(remoteVersion) >= 1.1)
+ if (StrToDouble(remoteVersion) >= 1.1 && StrToDouble(remoteVersion) < 2.0)
sql += wxT(", false");
sql += wxT(");\n")
Index: pgadmin/slony/slNode.cpp
===================================================================
--- pgadmin/slony/slNode.cpp (révision 8146)
+++ pgadmin/slony/slNode.cpp (copie de travail)
@@ -82,7 +82,7 @@
+ NumToStr(GetSlId()) + wxT(", ")
+ qtDbString(GetComment());
- if (GetCluster()->ClusterMinimumVersion(1, 1))
+ if (GetCluster()->ClusterMinimumVersion(1, 1) && !GetCluster()->ClusterMinimumVersion(2, 0))
sql += wxT(", ") + BoolToStr(GetSpool());
sql += wxT(");\n");
}
--
Sent via pgadmin-hackers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers