Use "table (field)" instead of "table -> field" when dumping relations into LaTeX (bug #776957).

This commit is contained in:
Michal Čihař
2003-08-05 11:42:02 +00:00
parent 8754a73490
commit 9476c79f70
2 changed files with 3 additions and 1 deletions

View File

@@ -7,6 +7,8 @@ $Source$
2003-08-05 Michal Cihar <nijel@users.sourceforge.net>
* sql.php3: Fixed regular expression.
* libraries/export/latex.php3: Use "table (field)" instead of
"table -> field" when dumping relations into LaTeX (bug #776957).
2003-08-05 Marc Delisle <lem9@users.sourceforge.net>
* libraries/sqlparser.data.php3: bug 779453, wrong count

View File

@@ -306,7 +306,7 @@ function PMA_exportStructure($db, $table, $crlf, $error_url, $do_relation = fals
if ($do_relation && $have_rel) {
$local_buffer .= "\000";
if (isset($res_rel[$field_name])) {
$local_buffer .= $res_rel[$field_name]['foreign_table'] . ' -> ' . $res_rel[$field_name]['foreign_field'];
$local_buffer .= $res_rel[$field_name]['foreign_table'] . ' (' . $res_rel[$field_name]['foreign_field'] . ')';
}
}
if ($do_comments && $cfgRelation['commwork']) {