bug #652311
This commit is contained in:
@@ -8,6 +8,9 @@ $Source$
|
|||||||
2002-12-11 Alexander M. Turek <rabus@users.sourceforge.net>
|
2002-12-11 Alexander M. Turek <rabus@users.sourceforge.net>
|
||||||
* lang/german-*.inc.php3: Updates.
|
* lang/german-*.inc.php3: Updates.
|
||||||
* lang/catalan-*.inc.php3: Updates, thanks again to Xavier Navarro (xavin).
|
* lang/catalan-*.inc.php3: Updates, thanks again to Xavier Navarro (xavin).
|
||||||
|
* libraries/build_dump.php3:
|
||||||
|
- Fixed part 2 of bug #652311 (Undefined variables);
|
||||||
|
- Coding standards.
|
||||||
|
|
||||||
2002-12-11 Michal Cihar <nijel@users.sourceforge.net>
|
2002-12-11 Michal Cihar <nijel@users.sourceforge.net>
|
||||||
* tbl_dump.php3: Fix exporting of structure and data to file, fix and make
|
* tbl_dump.php3: Fix exporting of structure and data to file, fix and make
|
||||||
|
@@ -677,14 +677,14 @@ if (!defined('PMA_BUILD_DUMP_LIB_INCLUDED')){
|
|||||||
mysql_free_result($result);
|
mysql_free_result($result);
|
||||||
|
|
||||||
$tex_escape = array("$", "%", "{", "}", "&", "#", "_", "^");
|
$tex_escape = array("$", "%", "{", "}", "&", "#", "_", "^");
|
||||||
|
|
||||||
$local_query = 'select * from ' . PMA_backquote($db) . '.' . PMA_backquote($table);
|
$local_query = 'select * from ' . PMA_backquote($db) . '.' . PMA_backquote($table);
|
||||||
$result = PMA_mysql_query($local_query) or PMA_mysqlDie('', $local_query, '', $error_url);
|
$result = PMA_mysql_query($local_query) or PMA_mysqlDie('', $local_query, '', $error_url);
|
||||||
|
|
||||||
$buffer .= '\begin{table} ' . $crlf
|
$buffer = '\begin{table} ' . $crlf
|
||||||
. ' \begin{longtable}{|';
|
. ' \begin{longtable}{|';
|
||||||
|
|
||||||
for($index=0;$index<$columns_cnt;$index++) {
|
for($index=0;$index<$columns_cnt;$index++) {
|
||||||
$buffer .= 'c|';
|
$buffer .= 'c|';
|
||||||
}
|
}
|
||||||
$buffer .= '} ' . $crlf ;
|
$buffer .= '} ' . $crlf ;
|
||||||
@@ -693,13 +693,13 @@ if (!defined('PMA_BUILD_DUMP_LIB_INCLUDED')){
|
|||||||
|
|
||||||
// print the whole table
|
// print the whole table
|
||||||
while ($record = PMA_mysql_fetch_array($result, MYSQL_ASSOC)) {
|
while ($record = PMA_mysql_fetch_array($result, MYSQL_ASSOC)) {
|
||||||
|
|
||||||
// print each row
|
// print each row
|
||||||
for($i = 0; $i < $columns_cnt; $i++) {
|
for($i = 0; $i < $columns_cnt; $i++) {
|
||||||
if (!function_exists('is_null') || !is_null($record[$columns[$i]])) {
|
if (!function_exists('is_null') || !is_null($record[$columns[$i]])) {
|
||||||
$column_value = $record[$columns[$i]];
|
$column_value = $record[$columns[$i]];
|
||||||
|
|
||||||
// $ % { } & # _ ^
|
// $ % { } & # _ ^
|
||||||
// escaping special characters
|
// escaping special characters
|
||||||
for($k=0;$k<count($tex_escape);$k++) {
|
for($k=0;$k<count($tex_escape);$k++) {
|
||||||
$column_value = str_replace($tex_escape[$k], '\\' . $tex_escape[$k], $column_value);
|
$column_value = str_replace($tex_escape[$k], '\\' . $tex_escape[$k], $column_value);
|
||||||
@@ -720,7 +720,7 @@ if (!defined('PMA_BUILD_DUMP_LIB_INCLUDED')){
|
|||||||
|
|
||||||
mysql_free_result($result);
|
mysql_free_result($result);
|
||||||
return $buffer;
|
return $buffer;
|
||||||
|
|
||||||
} // end getTableLatex
|
} // end getTableLatex
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user