Add the partition name to the proprties pane when viewing the partitions of a table...
authordpage <dpage@a7884b65-44f6-0310-8a51-81a127f17b15>
Tue, 21 Jul 2009 08:38:18 +0000 (08:38 +0000)
committerdpage <dpage@a7884b65-44f6-0310-8a51-81a127f17b15>
Tue, 21 Jul 2009 08:38:18 +0000 (08:38 +0000)
git-svn-id: svn://svn.pgadmin.org/trunk/pgadmin3@7977 a7884b65-44f6-0310-8a51-81a127f17b15

CHANGELOG
pgadmin/schema/pgTable.cpp

index 3f2f7e51349264ac6edcbdf34b9e5dd9d5879d5e..744db48b02853eef2484cf3f9b18e2d9793cbd67 100644 (file)
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -36,6 +36,8 @@ Changes
 \r
 Date       Dev Ver     Change details\r
 ---------- --- ------  --------------\r
+2009-07-21 DP  1.12.0  Add the partition name to the proprties pane when viewing\r
+                       the partitions of a table on GreenPlum [Chuck McDevitt].\r
 2009-07-20 GL  1.10.1  Fix the dlgFunction handling of preload libraries, per\r
                        report from Michael Shapiro.\r
 2009-07-20 GL  1.12.0  Multiple statements are an issue with pgPool-II in\r
index eb6508232a50d376a94bfda32dbc78e56c2bd63f..b8f787e139e53280c657cc3466c4aee86bfeadf9 100644 (file)
@@ -817,6 +817,12 @@ void pgTable::ShowTreeDetail(ctlTree *browser, frmMain *form, ctlListView *prope
         CreateListColumns(properties);
 
         properties->AppendItem(_("Name"), GetName());
+        if (GetConnection() != 0 && GetConnection()->GetIsGreenplum())
+        {
+            gpPartition * p = dynamic_cast<gpPartition *>(this);
+            if (p != 0)
+                properties->AppendItem(_("Partition Name"), p->GetPartitionName());   
+        }
         properties->AppendItem(_("OID"), GetOid());
         properties->AppendItem(_("Owner"), GetOwner());
         if (GetConnection()->BackendMinimumVersion(8, 0))