bug 760648 export SELECT DISTINCT results

This commit is contained in:
Marc Delisle
2003-06-26 01:05:03 +00:00
parent fdbe23351c
commit cd8b6fcc7c
3 changed files with 13 additions and 1 deletions

View File

@@ -711,6 +711,7 @@ if (!defined('PMA_SQP_LIB_INCLUDED')) {
*
* ['queryflags']['need_confirm'] = 1; if the query needs confirmation
* ['queryflags']['select_from'] = 1; if this is a real SELECT...FROM
* ['queryflags']['distinct'] = 1; for a DISTINCT
*
* lem9: query clauses
* -------------
@@ -1213,6 +1214,9 @@ if (!defined('PMA_SQP_LIB_INCLUDED')) {
$in_select_expr = TRUE;
$select_expr_clause = '';
}
if ($upper_data == 'DISTINCT') {
$subresult['queryflags']['distinct'] = 1;
}
// if this is a real SELECT...FROM
if ($upper_data == 'FROM' && isset($subresult['queryflags']['select_from']) && $subresult['queryflags']['select_from'] == 1) {