Web pgadmin.org
 Home 
 ·  ·  ·  ·  ·  ·  · 
CVS Commit by andreas: fix search_path/schema prefix bug

CVS Commit by andreas: fix search_path/schema prefix bug



Log Message:
-----------
fix search_path/schema prefix bug

Modified Files:
--------------
    pgadmin3/src/schema:
        pgDatabase.cpp (r1.61 -> r1.62)

Index: pgDatabase.cpp
===================================================================
RCS file: /projects/pgadmin3/src/schema/pgDatabase.cpp,v
retrieving revision 1.61
retrieving revision 1.62
diff -Lsrc/schema/pgDatabase.cpp -Lsrc/schema/pgDatabase.cpp -u -w -r1.61 -r1.62
--- src/schema/pgDatabase.cpp
+++ src/schema/pgDatabase.cpp
@@ -165,11 +165,15 @@
     if (name.IsEmpty())
         return name;
 
+    wxString sp=wxT("public,pg_catalog");
+
+#if 0
+    // this wasn't really a good idea for object creation/modification.
     wxString sp=settings->GetSearchPath();
     if (sp.IsEmpty())
         sp = GetSearchPath();
     sp += wxT(",pg_catalog");
-
+#endif
     wxStringTokenizer spt(sp, wxT(","));
     while (spt.HasMoreTokens())
     {


Home | Main Index | Thread Index

top