fixed a php error if there is no 'enclosed by' character
This commit is contained in:
@@ -6,6 +6,8 @@ $Id$
|
|||||||
$Source$
|
$Source$
|
||||||
|
|
||||||
2001-01-03 Lo<4C>c Chapeaux <lolo@phpheaven.net>
|
2001-01-03 Lo<4C>c Chapeaux <lolo@phpheaven.net>
|
||||||
|
* libraries/build_dump.php3, lines 508-514: fixed a php error if there is
|
||||||
|
no "enclosed by" character.
|
||||||
* db_details.php3, line 708; tbl_properties.inc.php3, line 71: maximum
|
* db_details.php3, line 708; tbl_properties.inc.php3, line 71: maximum
|
||||||
table and field size is 64 characters. Suggested by
|
table and field size is 64 characters. Suggested by
|
||||||
Marc Weidner <gurmbot at users.sourceforge.net>.
|
Marc Weidner <gurmbot at users.sourceforge.net>.
|
||||||
|
@@ -505,10 +505,14 @@ if (!defined('PMA_BUILD_DUMP_LIB_INCLUDED')){
|
|||||||
if ($what == 'excel') {
|
if ($what == 'excel') {
|
||||||
$row[$j] = ereg_replace("\015(\012)?", "\012", $row[$j]);
|
$row[$j] = ereg_replace("\015(\012)?", "\012", $row[$j]);
|
||||||
}
|
}
|
||||||
|
if ($enc_by == '') {
|
||||||
|
$schema_insert .= $row[$j];
|
||||||
|
} else {
|
||||||
$schema_insert .= $enc_by
|
$schema_insert .= $enc_by
|
||||||
. str_replace($enc_by, $esc_by . $enc_by, $row[$j])
|
. str_replace($enc_by, $esc_by . $enc_by, $row[$j])
|
||||||
. $enc_by;
|
. $enc_by;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
$schema_insert .= '';
|
$schema_insert .= '';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user