* A class that implements the DB interface for Postgres
* Note: This class uses ADODB and returns RecordSets.
*
- * $Id: Postgres.php,v 1.245 2004/09/07 14:04:21 jollytoad Exp $
+ * $Id: Postgres.php,v 1.246 2004/09/17 11:45:42 jollytoad Exp $
*/
// @@@ THOUGHT: What about inherits? ie. use of ONLY???
proname,
proretset,
pt.typname AS proresult,
+ pl.lanname AS prolanguage,
oidvectortypes(pc.proargtypes) AS proarguments,
(SELECT description FROM pg_description pd WHERE pc.oid=pd.objoid) AS procomment
FROM
- pg_proc pc, pg_user pu, pg_type pt
+ pg_proc pc, pg_user pu, pg_type pt, pg_language pl
WHERE
pc.proowner = pu.usesysid
AND pc.prorettype = pt.oid
+ AND pc.prolang = pl.oid
{$where}
UNION
SELECT
* A class that implements the DB interface for Postgres
* Note: This class uses ADODB and returns RecordSets.
*
- * $Id: Postgres73.php,v 1.137 2004/09/10 13:21:39 jollytoad Exp $
+ * $Id: Postgres73.php,v 1.138 2004/09/17 11:45:44 jollytoad Exp $
*/
// @@@ THOUGHT: What about inherits? ie. use of ONLY???
p.proretset,
pg_catalog.format_type(p.prorettype, NULL) AS proresult,
pg_catalog.oidvectortypes(p.proargtypes) AS proarguments,
+ pl.lanname AS prolanguage,
pg_catalog.obj_description(p.oid, 'pg_proc') AS procomment
FROM pg_catalog.pg_proc p
- LEFT JOIN pg_catalog.pg_namespace n ON n.oid = p.pronamespace
+ INNER JOIN pg_catalog.pg_namespace n ON n.oid = p.pronamespace
+ INNER JOIN pg_catalog.pg_language pl ON pl.oid = p.prolang
WHERE p.prorettype <> 'pg_catalog.cstring'::pg_catalog.regtype
- AND p.proargtypes[0] <> 'pg_catalog.cstring'::pg_catalog.regtype
- AND NOT p.proisagg
- AND {$where}
+ AND p.proargtypes[0] <> 'pg_catalog.cstring'::pg_catalog.regtype
+ AND NOT p.proisagg
+ AND {$where}
ORDER BY p.proname, proresult
";
/**
* Manage functions in a database
*
- * $Id: functions.php,v 1.45 2004/09/07 13:58:21 jollytoad Exp $
+ * $Id: functions.php,v 1.46 2004/09/17 11:45:46 jollytoad Exp $
*/
// Include application functions
'field' => '+proreturns',
'type' => 'verbatim',
),
+ 'language' => array(
+ 'title' => $lang['strlanguage'],
+ 'field' => 'prolanguage',
+ ),
'actions' => array(
'title' => $lang['stractions'],
),