do not try to display a tab that was not built

This commit is contained in:
Marc Delisle
2009-08-22 11:22:50 +00:00
parent 869571ee16
commit 15441ded5d
233 changed files with 76811 additions and 2473 deletions

View File

@@ -464,7 +464,7 @@ foreach ($rows as $row_id => $vrow) {
$data = $field['Default'];
}
if ($field['True_Type'] == 'bit') {
$special_chars = PMA_printable_bit_value($field['Default'], $extracted_fieldspec['spec_in_brackets']);
$special_chars = PMA_convert_bit_default_value($field['Default']);
} else {
$special_chars = htmlspecialchars($field['Default']);
}
@@ -525,8 +525,12 @@ foreach ($rows as $row_id => $vrow) {
$default_function = $cfg['DefaultFunctions']['first_timestamp'];
}
if ($field['Key'] == 'PRI'
&& ($field['Type'] == 'char(36)' || $field['Type'] == 'varchar(36)')) {
// For primary keys of type char(36) or varchar(36) UUID if the default function
// Only applies to insert mode, as it would silently trash data on updates.
if ($insert_mode
&& $field['Key'] == 'PRI'
&& ($field['Type'] == 'char(36)' || $field['Type'] == 'varchar(36)')
) {
$default_function = $cfg['DefaultFunctions']['pk_char36'];
}