fixed bug #491051 - SQL Upload error last comment
This commit is contained in:
@@ -101,13 +101,15 @@ function PMA_splitSqlFile(&$ret, $sql, $release)
|
|||||||
: strpos(' ' . $sql, "\015", $i+2);
|
: strpos(' ' . $sql, "\015", $i+2);
|
||||||
if (!$end_of_comment) {
|
if (!$end_of_comment) {
|
||||||
// no eol found after '#', add the parsed part to the returned
|
// no eol found after '#', add the parsed part to the returned
|
||||||
// array and exit
|
// array if required and exit
|
||||||
$ret[] = trim(substr($sql, 0, $i-1));
|
if ($start_of_comment > 0) {
|
||||||
|
$ret[] = trim(substr($sql, 0, $start_of_comment));
|
||||||
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
} else {
|
} else {
|
||||||
$sql = substr($sql, 0, $start_of_comment)
|
$sql = substr($sql, 0, $start_of_comment)
|
||||||
. ltrim(substr($sql, $end_of_comment));
|
. ltrim(substr($sql, $end_of_comment));
|
||||||
$sql_len = strlen($sql);
|
$sql_len = strlen($sql);
|
||||||
$i--;
|
$i--;
|
||||||
} // end if...else
|
} // end if...else
|
||||||
} // end else if (is comment)
|
} // end else if (is comment)
|
||||||
@@ -356,7 +358,7 @@ if (!empty($id_bookmark) && $action_bookmark == 2) {
|
|||||||
} else if (!isset($sql_query_cpy)) {
|
} else if (!isset($sql_query_cpy)) {
|
||||||
$message = $strNoQuery;
|
$message = $strNoQuery;
|
||||||
} else if ($sql_query_cpy == '') {
|
} else if ($sql_query_cpy == '') {
|
||||||
$message = "$strSuccess :<br />$strTheContent ($pieces_count $strInstructions) ";
|
$message = "$strSuccess :<br />$strTheContent ($pieces_count $strInstructions) ";
|
||||||
} else {
|
} else {
|
||||||
$message = $strSuccess;
|
$message = $strSuccess;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user