* A class that implements the DB interface for Postgres
* Note: This class uses ADODB and returns RecordSets.
*
- * $Id: BaseDB.php,v 1.52 2004/07/14 18:32:02 soranzo Exp $
+ * $Id: BaseDB.php,v 1.53 2004/07/14 19:09:38 soranzo Exp $
*/
include_once('./classes/database/ADODB_base.php');
function hasIsClustered() { return false; }
function hasDropBehavior() { return false; }
function hasDropColumn() { return false; }
- function hasSRFs() { return false; }
function hasDomains() { return false; }
function hasDomainConstraints() { return false; }
function hasAlterTrigger() { return false; }
* A class that implements the DB interface for Postgres
* Note: This class uses ADODB and returns RecordSets.
*
- * $Id: Postgres.php,v 1.236 2004/07/14 18:32:02 soranzo Exp $
+ * $Id: Postgres.php,v 1.237 2004/07/14 19:09:38 soranzo Exp $
*/
// @@@ THOUGHT: What about inherits? ie. use of ONLY???
function hasAggregates() { return true; }
function hasIndicies() { return true; }
function hasLanguages() { return true; }
- function hasSRFs() { return true; }
function hasOpClasses() { return true; }
function hasFunctionRename() { return true; }
/**
* Manage functions in a database
*
- * $Id: functions.php,v 1.37 2004/07/13 16:13:15 jollytoad Exp $
+ * $Id: functions.php,v 1.38 2004/07/14 19:09:38 soranzo Exp $
*/
// Include application functions
htmlspecialchars($_POST['formArguments']), "\" /></td>\n";
echo "<td class=\"data1\">\n";
- // If supports set-returning-functions, output setof option
- if ($data->hasSRFs()) {
- echo "<select name=\"formSetOf\">\n";
- echo "<option value=\"\"", ($_POST['formSetOf'] == '') ? ' selected="selected"' : '', "></option>\n";
- echo "<option value=\"SETOF\"", ($_POST['formSetOf'] == 'SETOF') ? ' selected="selected"' : '', ">SETOF</option>\n";
- echo "</select>\n";
- }
- else {
- echo "<input type=\"hidden\" name=\"formSetOf\" value=\"\" />\n";
- }
+ // Output setof option
+ echo "<select name=\"formSetOf\">\n";
+ echo '<option value=""', ($_POST['formSetOf'] == '') ? ' selected="selected"' : '', "></option>\n";
+ echo '<option value="SETOF"', ($_POST['formSetOf'] == 'SETOF') ? ' selected="selected"' : '', ">SETOF</option>\n";
+ echo "</select>\n";
+
// Output return type list
echo "<select name=\"formReturns\">\n";
while (!$types->EOF) {