Skip site navigation (1) Skip section navigation (2)

SVN Commit by andreas: r4838 - trunk/pgadmin3/src/schema

From: svn(at)pgadmin(dot)org
To: pgadmin-hackers(at)postgresql(dot)org
Subject: SVN Commit by andreas: r4838 - trunk/pgadmin3/src/schema
Date: 2005-12-11 22:22:49
Message-ID: 200512112222.jBBMMnkO004522@developer.pgadmin.org (view raw or flat)
Thread:
Lists: pgadmin-hackers
Author: andreas
Date: 2005-12-11 22:22:49 +0000 (Sun, 11 Dec 2005)
New Revision: 4838

Modified:
   trunk/pgadmin3/src/schema/pgLanguage.cpp
Log:
show language validator in language reverse engineering

Modified: trunk/pgadmin3/src/schema/pgLanguage.cpp
===================================================================
--- trunk/pgadmin3/src/schema/pgLanguage.cpp	2005-12-11 22:22:30 UTC (rev 4837)
+++ trunk/pgadmin3/src/schema/pgLanguage.cpp	2005-12-11 22:22:49 UTC (rev 4838)
@@ -37,6 +37,7 @@
     return GetDatabase()->ExecuteVoid(sql);
 }
 
+
 wxString pgLanguage::GetSql(ctlTree *browser)
 {
     if (sql.IsNull())
@@ -47,13 +48,19 @@
         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());
 
     }
     return sql;
 }
 
+
 void pgLanguage::ShowTreeDetail(ctlTree *browser, frmMain *form, ctlListView *properties, ctlSQLBox *sqlPane)
 {
     if (properties)


pgadmin-hackers by date

Next:From: svnDate: 2005-12-11 23:08:22
Subject: SVN Commit by andreas: r4839 - in trunk/pgadmin3: . src/dlg src/frm src/include src/ui
Previous:From: svnDate: 2005-12-11 22:22:30
Subject: SVN Commit by andreas: r4837 - branches/REL-1_4_0_PATCHES/pgadmin3/src/schema

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group