*/
// Handle WITHOUT OIDS
- if ($this->hasWithoutOIDs()) {
- if ($this->hasObjectID($table))
- $sql .= " WITH OIDS";
- else
- $sql .= " WITHOUT OIDS";
- }
+ if ($this->hasObjectID($table))
+ $sql .= " WITH OIDS";
+ else
+ $sql .= " WITHOUT OIDS";
$sql .= ";\n";
$sql .= ")";
// WITHOUT OIDS
- if ($this->hasWithoutOIDs() && $withoutoids)
+ if ($withoutoids)
$sql .= ' WITHOUT OIDS';
+ else
+ $sql .= ' WITH OIDS';
// Tablespace
if ($this->hasTablespaces() && $tablespace != '') {
function hasVariables() { return true; }
function hasViewColumnRename() { return true; }
function hasVirtualTransactionId() { return true; }
- function hasWithoutOIDs() { return true; }
function hasAlterDatabase() { return $this->hasAlterDatabaseRename(); }
function hasDatabaseCollation() { return true; }
function hasMagicTypes() { return true; }
echo "\t<tr>\n\t\t<th class=\"data left required\">{$lang['strnumcols']}</th>\n";
echo "\t\t<td class=\"data\"><input name=\"fields\" size=\"5\" maxlength=\"{$data->_maxNameLen}\" value=\"",
htmlspecialchars($_REQUEST['fields']), "\" /></td>\n\t</tr>\n";
- if ($data->hasWithoutOIDs()) {
- echo "\t<tr>\n\t\t<th class=\"data left\">{$lang['stroptions']}</th>\n";
- echo "\t\t<td class=\"data\"><label for=\"withoutoids\"><input type=\"checkbox\" id=\"withoutoids\" name=\"withoutoids\"", isset($_REQUEST['withoutoids']) ? ' checked="checked"' : '', " />WITHOUT OIDS</label></td>\n\t</tr>\n";
- }
+ echo "\t<tr>\n\t\t<th class=\"data left\">{$lang['stroptions']}</th>\n";
+ echo "\t\t<td class=\"data\"><label for=\"withoutoids\"><input type=\"checkbox\" id=\"withoutoids\" name=\"withoutoids\"", isset($_REQUEST['withoutoids']) ? ' checked="checked"' : '', " />WITHOUT OIDS</label></td>\n\t</tr>\n";
// Tablespace (if there are any)
if ($data->hasTablespaces() && $tablespaces->recordCount() > 0) {