Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuichiro <yuichiro@pop07.odn.ne.jp>2012-01-05 13:35:43 +0400
committerMichal Čihař <mcihar@suse.cz>2012-01-05 19:26:41 +0400
commit1f85d957ca8d6fc0df61be364c806218ba90ef7a (patch)
tree8a5f5868461c65b618127194c4c93c31997da398 /tbl_tracking.php
parent35d5d344302439495fbd457f1f3ec6cc25edbcef (diff)
Improved the Structure table of the snapshot
Diffstat (limited to 'tbl_tracking.php')
-rw-r--r--tbl_tracking.php19
1 files changed, 17 insertions, 2 deletions
diff --git a/tbl_tracking.php b/tbl_tracking.php
index fecfa86396..3f147451b8 100644
--- a/tbl_tracking.php
+++ b/tbl_tracking.php
@@ -278,8 +278,23 @@ if (isset($_REQUEST['snapshot'])) {
?>
<td><?php echo htmlspecialchars($field['Type']);?></td>
<td><?php echo htmlspecialchars($field['Collation']);?></td>
- <td><?php echo htmlspecialchars($field['Null']);?></td>
- <td><?php echo htmlspecialchars($field['Default']);?></td>
+ <td><?php echo (($field['Null'] == 'YES') ? __('Yes') : __('No')); ?></td>
+ <td><?php
+ if (isset($field['Default'])) {
+ $extracted_fieldspec = PMA_extractFieldSpec($field['Type']);
+ if ($extracted_fieldspec['type'] == 'bit') {
+ // here, $field['Default'] contains something like b'010'
+ echo PMA_convert_bit_default_value($field['Default']);
+ } else {
+ echo htmlspecialchars($field['Default']);
+ }
+ } else {
+ if ($field['Null'] == 'YES') {
+ echo '<i>NULL</i>';
+ } else {
+ echo '<i>' . _pgettext('None for default', 'None') . '</i>';
+ }
+ } ?></td>
<td><?php echo htmlspecialchars($field['Extra']);?></td>
<td><?php echo htmlspecialchars($field['Comment']);?></td>
</tr>