do not try to display a tab that was not built
This commit is contained in:
@@ -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'];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user