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

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Sorted Function List in New Trigger form


  • From: "Robins Tharakan" <tharakan(at)gmail(dot)com>
  • To: pgadmin-hackers(at)postgresql(dot)org
  • Subject: Sorted Function List in New Trigger form
  • Date: Wed, 13 Feb 2008 23:32:02 +0530
  • Message-id: <36af4bed0802131002u2331672et79855c60ecbf76d1(at)mail(dot)gmail(dot)com>

Hi,

While working at office today I realised that it was quite annoying to get and unsorted function list in the 'New Trigger' form.

(While I do other stuff, I thought I should take care of these trivials before it gets out of my mind.)

Attached is a small patch to sort that list.

Robins
Index: pgadmin/dlg/dlgTrigger.cpp
===================================================================
--- pgadmin/dlg/dlgTrigger.cpp	(revision 7073)
+++ pgadmin/dlg/dlgTrigger.cpp	(working copy)
@@ -124,7 +124,8 @@
         pgSet *set=connection->ExecuteSet(
             wxT("SELECT quote_ident(nspname) || '.' || quote_ident(proname)\n")
             wxT("  FROM pg_proc p, pg_namespace n, pg_language l\n")
-            wxT(" WHERE p.pronamespace = n.oid AND p.prolang = l.oid AND l.lanname != 'edbspl' AND prorettype=") + NumToStr(PGOID_TYPE_TRIGGER) + sysRestr);
+            wxT(" WHERE p.pronamespace = n.oid AND p.prolang = l.oid AND l.lanname != 'edbspl' AND prorettype=") + NumToStr(PGOID_TYPE_TRIGGER) + sysRestr + 
+            wxT(" ORDER BY nspname ASC, proname ASC "));
         if (set)
         {
             while (!set->Eof())


Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group