bug #1394479, problem detecting ending semi-colon, generates a SHOW KEYS FROM nothing

This commit is contained in:
Marc Delisle
2006-01-10 18:19:04 +00:00
parent 3bac98ef23
commit 32a946d084
2 changed files with 7 additions and 1 deletions

View File

@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
$Id$
$Source$
2006-01-10 Marc Delisle <lem9@users.sourceforge.net>
* libraries/sqlparser.lib.php: bug #1394479, problem detecting ending
semi-colon, generates a SHOW KEYS FROM no table name
2006-01-09 Michal Čihař <michal@cihar.com>
* import.php: Work on 10MB chunks if no memory limit is set (bug
#1399477).

View File

@@ -911,7 +911,9 @@ if ( ! defined( 'PMA_MINIMUM_COMMON' ) ) {
// TODO: when we find a UNION, should we split
// in another subresult?
if ($arr[$i]['type'] == 'punct_queryend') {
// Note: do not split if this is a punct_queryend for the
// first and only query
if ($arr[$i]['type'] == 'punct_queryend' && ($i + 1 != $size)) {
$result[] = $subresult;
$subresult = $subresult_empty;
continue;