/**
* 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();
* 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???
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,