Author: andreas
Date: 2005-06-07 19:23:49 +0100 (Tue, 07 Jun 2005)
New Revision: 4285

Modified:
   trunk/pgadmin3/src/db/pgConn.cpp
   trunk/pgadmin3/src/include/pgConn.h
Log:
correctly identify EDB

Modified: trunk/pgadmin3/src/db/pgConn.cpp
===================================================================
--- trunk/pgadmin3/src/db/pgConn.cpp    2005-06-07 15:56:14 UTC (rev 4284)
+++ trunk/pgadmin3/src/db/pgConn.cpp    2005-06-07 18:23:49 UTC (rev 4285)
@@ -48,6 +48,15 @@
     majorVersion=0;
 }
 
+
+bool pgConn::GetIsEdb()
+{
+    // to retrieve edb flag
+    BackendMinimumVersion(0,0);
+    return isEdb; 
+}
+
+
 wxString pgConn::SystemNamespaceRestriction(const wxString &nsp)
 {
     if (reservedNamespaces.IsEmpty())

Modified: trunk/pgadmin3/src/include/pgConn.h
===================================================================
--- trunk/pgadmin3/src/include/pgConn.h 2005-06-07 15:56:14 UTC (rev 4284)
+++ trunk/pgadmin3/src/include/pgConn.h 2005-06-07 18:23:49 UTC (rev 4285)
@@ -38,7 +38,7 @@
     wxString SystemNamespaceRestriction(const wxString &nsp);
     int GetMajorVersion() const { return majorVersion; }
     int GetMinorVersion() const { return minorVersion; }
-    bool GetIsEdb() const { return isEdb; }
+    bool GetIsEdb();
 
 private:
     bool features[32];


---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

               http://archives.postgresql.org

Reply via email to