summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorioguix2007-09-25 16:08:05 +0000
committerioguix2007-09-25 16:08:05 +0000
commit43b22bfdeefc95912acdec270af73e81aff920d4 (patch)
tree4366f7dbf6dd73137c3ca2184f0be2e16bf5887e
parentd69d75e456ef1d40cfb9ba901bd9a818ec8b4805 (diff)
wow, comments on casts page
-rw-r--r--casts.php6
-rw-r--r--classes/database/Postgres73.php5
2 files changed, 8 insertions, 3 deletions
diff --git a/casts.php b/casts.php
index 7e2a587d..835d1106 100644
--- 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
@@ -54,6 +54,10 @@
'type' => 'callback',
'params'=> array('function' => 'renderCastContext', 'align' => 'center'),
),
+ 'comment' => array(
+ 'title' => $lang['strcomment'],
+ 'field' => field('castcomment'),
+ ),
);
$actions = array();
diff --git a/classes/database/Postgres73.php b/classes/database/Postgres73.php
index c5832a44..c0a6c868 100644
--- a/classes/database/Postgres73.php
+++ b/classes/database/Postgres73.php
@@ -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,