wow, comments on casts page
authorioguix <ioguix>
Tue, 25 Sep 2007 16:08:05 +0000 (16:08 +0000)
committerioguix <ioguix>
Tue, 25 Sep 2007 16:08:05 +0000 (16:08 +0000)
casts.php
classes/database/Postgres73.php

index 7e2a587d0b2aa8eae6c18bd7a19e87ea85621ec3..835d1106a02a3274474e471be53a18b91c6587bc 100644 (file)
--- a/casts.php
+++ b/casts.php
@@ -3,7 +3,7 @@
        /**
         * Manage casts in a database
         *
-        * $Id: casts.php,v 1.15 2007/08/31 18:30:10 ioguix Exp $
+        * $Id: casts.php,v 1.16 2007/09/25 16:08:05 ioguix Exp $
         */
 
        // Include application functions
                                'type'  => 'callback',
                                'params'=> array('function' => 'renderCastContext', 'align' => 'center'),
                        ),
+                       'comment' => array(
+                               'title' => $lang['strcomment'],
+                               'field' => field('castcomment'),
+                       ),
                );
 
                $actions = array();
index c5832a4437a1354689cc0741481391aa899c0858..c0a6c868e53117305d49f14f6d22d4880c95f4dc 100644 (file)
@@ -4,7 +4,7 @@
  * A class that implements the DB interface for Postgres
  * Note: This class uses ADODB and returns RecordSets.
  *
- * $Id: Postgres73.php,v 1.169 2007/09/21 20:00:38 ioguix Exp $
+ * $Id: Postgres73.php,v 1.170 2007/09/25 16:08:05 ioguix Exp $
  */
 
 // @@@ THOUGHT: What about inherits? ie. use of ONLY???
@@ -1787,7 +1787,8 @@ class Postgres73 extends Postgres72 {
                                c.casttarget::pg_catalog.regtype AS casttarget,
                                CASE WHEN c.castfunc=0 THEN NULL
                                ELSE c.castfunc::pg_catalog.regprocedure END AS castfunc,
-                               c.castcontext
+                               c.castcontext,
+                               obj_description(c.oid, 'pg_cast') as castcomment
                        FROM
                                (pg_catalog.pg_cast c LEFT JOIN pg_catalog.pg_proc p ON c.castfunc=p.oid JOIN pg_catalog.pg_namespace n3 ON p.pronamespace=n3.oid),
                                pg_catalog.pg_type t1,