bug 653964
This commit is contained in:
@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
|
|||||||
$Id$
|
$Id$
|
||||||
$Source$
|
$Source$
|
||||||
|
|
||||||
|
2003-05-23 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
|
* libraries/sqlparser.lib.php3: bug 653964: wrong alias set by
|
||||||
|
the analyzer, bug analyzed thanks to Michal!
|
||||||
|
|
||||||
2003-05-23 Michal Cihar <nijel@users.sourceforge.net>
|
2003-05-23 Michal Cihar <nijel@users.sourceforge.net>
|
||||||
* read_dump.php3, tbl_alter.php3: Tabs highlighting...
|
* read_dump.php3, tbl_alter.php3: Tabs highlighting...
|
||||||
|
|
||||||
|
@@ -875,8 +875,12 @@ if (!defined('PMA_SQP_LIB_INCLUDED')) {
|
|||||||
|
|
||||||
if ($subresult['querytype'] == 'SELECT') {
|
if ($subresult['querytype'] == 'SELECT') {
|
||||||
if (!$seen_from) {
|
if (!$seen_from) {
|
||||||
if ($previous_was_identifier) {
|
if ($previous_was_identifier && isset($chain)) {
|
||||||
// found alias for this select_expr, save it
|
// found alias for this select_expr, save it
|
||||||
|
// but only if we got something in $chain
|
||||||
|
// (for example, SELECT COUNT(*) AS cnt
|
||||||
|
// puts nothing in $chain, so we avoid
|
||||||
|
// setting the alias)
|
||||||
$alias_for_select_expr = $identifier;
|
$alias_for_select_expr = $identifier;
|
||||||
} else {
|
} else {
|
||||||
$chain[] = $identifier;
|
$chain[] = $identifier;
|
||||||
|
Reference in New Issue
Block a user