Ticket #122: ticket122_v1.patch

File ticket122_v1.patch, 1.1 KB (added by gleu, 2 years ago)

v1 patch

  • pgadmin/slony/dlgRepCluster.cpp

     
    737737                    + txtNodeID->GetValue() + wxT(", ") 
    738738                    + qtDbString(txtNodeName->GetValue()); 
    739739 
    740             if (StrToDouble(remoteVersion) >= 1.1) 
     740            if (StrToDouble(remoteVersion) >= 1.1 && StrToDouble(remoteVersion) < 2.0) 
    741741                sql += wxT(", false"); 
    742742 
    743743            sql += wxT(");\n") 
  • pgadmin/slony/slNode.cpp

     
    8282                    + NumToStr(GetSlId()) + wxT(", ") 
    8383                    + qtDbString(GetComment()); 
    8484 
    85         if (GetCluster()->ClusterMinimumVersion(1, 1)) 
     85                if (GetCluster()->ClusterMinimumVersion(1, 1) && !GetCluster()->ClusterMinimumVersion(2, 0)) 
    8686            sql += wxT(", ") + BoolToStr(GetSpool()); 
    8787        sql += wxT(");\n"); 
    8888    }