Features
* Add CACHE and CYCLE parameters in sequence creation
* View, add, edit and delete comments on tables, views, schemas,
- aggregates, conversions, operators and columns (Dan Boren & ChrisKL)
+ aggregates, conversions, operators, functions and
+ columns (Dan Boren & ChrisKL)
* Allow creating array columns in tables
* Allow adding array columns to tables
* Allow creating domains with type length and arrays
* A class that implements the DB interface for Postgres
* Note: This class uses ADODB and returns RecordSets.
*
- * $Id: Postgres.php,v 1.193 2004/05/08 11:34:08 chriskl Exp $
+ * $Id: Postgres.php,v 1.194 2004/05/08 14:08:01 chriskl Exp $
*/
// @@@ THOUGHT: What about inherits? ie. use of ONLY???
proname,
proretset,
pt.typname AS return_type,
- oidvectortypes(pc.proargtypes) AS arguments
+ oidvectortypes(pc.proargtypes) AS arguments,
+ (SELECT description FROM pg_description pd WHERE pc.oid=pd.objoid) AS funccomment
FROM
pg_proc pc, pg_user pu, pg_type pt
WHERE
proname,
proretset,
'OPAQUE' AS result,
- oidvectortypes(pc.proargtypes) AS arguments
+ oidvectortypes(pc.proargtypes) AS arguments,
+ (SELECT description FROM pg_description pd WHERE pc.oid=pd.objoid) AS funccomment
FROM
pg_proc pc, pg_user pu, pg_type pt
WHERE
* A class that implements the DB interface for Postgres
* Note: This class uses ADODB and returns RecordSets.
*
- * $Id: Postgres72.php,v 1.60 2004/05/08 11:34:14 chriskl Exp $
+ * $Id: Postgres72.php,v 1.61 2004/05/08 14:08:09 chriskl Exp $
*/
p.proname,
false AS proretset,
format_type(p.prorettype, NULL) AS return_type,
- oidvectortypes(p.proargtypes) AS arguments
+ oidvectortypes(p.proargtypes) AS arguments,
+ (SELECT description FROM pg_description pd WHERE p.oid=pd.objoid) AS funccomment
FROM
pg_proc p
WHERE
* A class that implements the DB interface for Postgres
* Note: This class uses ADODB and returns RecordSets.
*
- * $Id: Postgres73.php,v 1.96 2004/05/08 11:36:45 chriskl Exp $
+ * $Id: Postgres73.php,v 1.97 2004/05/08 14:08:09 chriskl Exp $
*/
// @@@ THOUGHT: What about inherits? ie. use of ONLY???
p.proname,
p.proretset,
pg_catalog.format_type(p.prorettype, NULL) AS return_type,
- pg_catalog.oidvectortypes(p.proargtypes) AS arguments
+ pg_catalog.oidvectortypes(p.proargtypes) AS arguments,
+ pg_catalog.obj_description(p.oid, 'pg_proc') AS funccomment
FROM pg_catalog.pg_proc p
LEFT JOIN pg_catalog.pg_namespace n ON n.oid = p.pronamespace
WHERE p.prorettype <> 'pg_catalog.cstring'::pg_catalog.regtype
/**
* Manage functions in a database
*
- * $Id: functions.php,v 1.27 2004/01/14 02:14:28 chriskl Exp $
+ * $Id: functions.php,v 1.28 2004/05/08 14:08:00 chriskl Exp $
*/
// Include application functions
echo "<table>\n";
echo "<tr><th class=\"data\">{$lang['strfunctions']}</th><th class=\"data\">{$lang['strreturns']}</th>\n";
echo "<th class=\"data\">{$lang['strarguments']}</th><th colspan=\"4\" class=\"data\">{$lang['stractions']}</th>\n";
+ echo "<th class=\"data\">{$lang['strcomment']}</th>\n";
+ echo "</tr>\n";
$i = 0;
while (!$funcs->EOF) {
$funcs->f[$data->fnFields['setof']] = $data->phpBool($funcs->f[$data->fnFields['setof']]);
$funcs->f[$data->fnFields['fnoid']], "&type=function\">{$lang['strprivileges']}</a></td>\n";
}
else echo "<td></td>";
+ echo "<td class=\"data{$id}\">", $misc->printVal($funcs->f['funccomment']), "</td>\n";
echo "</tr>\n";
$funcs->moveNext();
$i++;