bug #2826986 [display] Order by BLOB and range display

This commit is contained in:
Marc Delisle
2009-08-30 13:06:31 +00:00
parent 19331b9c32
commit cd55ba7cab
2 changed files with 3 additions and 2 deletions

View File

@@ -15,6 +15,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA
inside a subquery inside a subquery
- bug #2837722 [export] Run complex SQL then export does not work - bug #2837722 [export] Run complex SQL then export does not work
- bug #2839548 [export] Triggers order on export - bug #2839548 [export] Triggers order on export
- bug #2826986 [display] Order by BLOB and range display
3.2.1.0 (2009-08-09) 3.2.1.0 (2009-08-09)
- bug #2799009 Login with ipv6 IP address breaks redirect - bug #2799009 Login with ipv6 IP address breaks redirect

View File

@@ -1837,11 +1837,11 @@ function PMA_displayTable(&$dt_result, &$the_disp_mode, $analyzed_sql)
if ($sorted_column_index !== false) { if ($sorted_column_index !== false) {
// fetch first row of the result set // fetch first row of the result set
$row = PMA_DBI_fetch_row($dt_result); $row = PMA_DBI_fetch_row($dt_result);
$column_for_first_row = $row[$sorted_column_index]; $column_for_first_row = substr($row[$sorted_column_index], 0, $GLOBALS['cfg']['LimitChars']);
// fetch last row of the result set // fetch last row of the result set
PMA_DBI_data_seek($dt_result, $num_rows - 1); PMA_DBI_data_seek($dt_result, $num_rows - 1);
$row = PMA_DBI_fetch_row($dt_result); $row = PMA_DBI_fetch_row($dt_result);
$column_for_last_row = $row[$sorted_column_index]; $column_for_last_row = substr($row[$sorted_column_index], 0, $GLOBALS['cfg']['LimitChars']);
// reset to first row for the loop in PMA_displayTableBody() // reset to first row for the loop in PMA_displayTableBody()
PMA_DBI_data_seek($dt_result, 0); PMA_DBI_data_seek($dt_result, 0);
// we could also use here $sort_expression_nodirection // we could also use here $sort_expression_nodirection