From: Christopher Kings-L. <ch...@us...> - 2001-12-17 04:41:44
|
Update of /cvsroot/phppgadmin/phpPgAdmin In directory usw-pr-cvs1:/tmp/cvs-serv1454 Modified Files: func_edit.php func_properties.php Log Message: added type aliases to return type list. fixed some version detection. increased size of function edit box Index: func_edit.php =================================================================== RCS file: /cvsroot/phppgadmin/phpPgAdmin/func_edit.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** func_edit.php 2001/10/23 22:07:35 1.9 --- func_edit.php 2001/12/17 04:41:41 1.10 *************** *** 71,78 **** FROM pg_type pt WHERE typname NOT LIKE '\\\_%' AND typname NOT LIKE 'pg\\\_%' EXCEPT SELECT relname FROM pg_class - WHERE relkind = 'S' ORDER BY typname "; --- 71,81 ---- FROM pg_type pt WHERE typname NOT LIKE '\\\_%' AND typname NOT LIKE 'pg\\\_%' + UNION + SELECT format_type(pt.oid, NULL) + FROM pg_type pt + WHERE typname NOT LIKE '\\\_%' AND typname NOT LIKE 'pg\\\_%' EXCEPT SELECT relname FROM pg_class ORDER BY typname "; *************** *** 93,97 **** unset($strSelType); } ! echo "<option value=\"$typename\"$strSelType>$typename"; } ?> --- 96,100 ---- unset($strSelType); } ! echo "<option value=\"$typename\"$strSelType>$typename\n"; } ?> *************** *** 118,122 **** <tr><th colspan=4><?php echo $strSrc; ?></th></tr> <tr> ! <td colspan=4><textarea name=source wrap=virtual cols=80 rows=10><?php echo $func[source]; ?></textarea></td> </tr> <tr> --- 121,125 ---- <tr><th colspan=4><?php echo $strSrc; ?></th></tr> <tr> ! <td colspan=4><textarea name=source wrap=virtual cols=80 rows=40><?php echo $func[source]; ?></textarea></td> </tr> <tr> Index: func_properties.php =================================================================== RCS file: /cvsroot/phppgadmin/phpPgAdmin/func_properties.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** func_properties.php 2001/10/23 22:07:35 1.8 --- func_properties.php 2001/12/17 04:41:41 1.9 *************** *** 34,38 **** $row = @pg_fetch_array($res_props, 0); ! if ($version < 7.1) { $strArgList = ereg_replace(" ", ", ", $row[arguments]); } else { --- 34,38 ---- $row = @pg_fetch_array($res_props, 0); ! if (substr($version, 0, 3) < 7.1) { $strArgList = ereg_replace(" ", ", ", $row[arguments]); } else { |