Log Message:
-----------
Get the port number of locally installed servers from th registry as well as other 
details (requires latest installer code).

Modified Files:
--------------
    pgadmin3/src/ui:
        frmMain.cpp (r1.105 -> r1.106)

Index: frmMain.cpp
===================================================================
RCS file: /projects/pgadmin3/src/ui/frmMain.cpp,v
retrieving revision 1.105
retrieving revision 1.106
diff -Lsrc/ui/frmMain.cpp -Lsrc/ui/frmMain.cpp -u -w -r1.105 -r1.106
--- src/ui/frmMain.cpp
+++ src/ui/frmMain.cpp
@@ -824,7 +824,7 @@
 
     long numServers=settings->Read(wxT("Servers/Count"), 0L);
 
-    int loop, port, ssl=0;
+    long loop, port, ssl=0;
     wxString key, servername, description, database, username, lastDatabase, 
lastSchema, trusted, serviceID;
     pgServer *server;
 
@@ -912,6 +912,7 @@
 
                wxString svcName, temp;
                long cookie = 0;
+               long *tmpport = 0;
                bool flag = false;
 
                flag = pgKey->GetFirstKey(svcName, cookie);
@@ -927,7 +928,7 @@
                 database = wxT("template1");
                            svcKey->QueryValue(wxT("Display Name"), description);
                            svcKey->QueryValue(wxT("Database Superuser"), username);
-                port = 5432;    // we'd like this from svcKey too...
+                svcKey->QueryValue(wxT("Port"), &port);
 
                            // Add the Server node
                            server = new pgServer(servername, description, database, 
username, port, false, 0);
---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
      joining column's datatypes do not match

Reply via email to