SVN Commit by andreas: r4837 - branches/REL-1_4_0_PATCHES/pgadmin3/src/schema - Mailing list pgadmin-hackers

From svn@pgadmin.org
Subject SVN Commit by andreas: r4837 - branches/REL-1_4_0_PATCHES/pgadmin3/src/schema
Date
Msg-id 200512112222.jBBMMUxg004508@developer.pgadmin.org
Whole thread Raw
List pgadmin-hackers
Author: andreas
Date: 2005-12-11 22:22:30 +0000 (Sun, 11 Dec 2005)
New Revision: 4837

Modified:
   branches/REL-1_4_0_PATCHES/pgadmin3/src/schema/pgLanguage.cpp
Log:
show language validator in language reverse engineering

Modified: branches/REL-1_4_0_PATCHES/pgadmin3/src/schema/pgLanguage.cpp
===================================================================
--- branches/REL-1_4_0_PATCHES/pgadmin3/src/schema/pgLanguage.cpp    2005-12-11 22:16:17 UTC (rev 4836)
+++ branches/REL-1_4_0_PATCHES/pgadmin3/src/schema/pgLanguage.cpp    2005-12-11 22:22:30 UTC (rev 4837)
@@ -47,7 +47,12 @@
         if (GetTrusted())
             sql += wxT("TRUSTED ");
         sql += wxT("PROCEDURAL LANGUAGE '") + GetName()
-            +  wxT("'\n  HANDLER ") + GetHandlerProc() + wxT(";\n")
+            +  wxT("'\n  HANDLER ") + GetHandlerProc();
+
+        if (!GetValidatorProc().IsEmpty())
+            sql += wxT("\n  VALIDATOR ") + GetValidatorProc();
+
+        sql += wxT(";\n")
             +  GetGrant(wxT("X"), wxT("LANGUAGE ") + GetQuotedFullIdentifier());

     }


pgadmin-hackers by date:

Previous
From: Andreas Pflug
Date:
Subject: Re: SVN Commit by andreas: r4836 - in branches/REL-1_4_0_PATCHES/pgadmin3/src:
Next
From: svn@pgadmin.org
Date:
Subject: SVN Commit by andreas: r4838 - trunk/pgadmin3/src/schema