browse delays
This commit is contained in:
7
sql.php3
7
sql.php3
@@ -392,6 +392,13 @@ else {
|
|||||||
$count_query .= ' HAVING ' . $analyzed_sql[0]['having_clause'];
|
$count_query .= ' HAVING ' . $analyzed_sql[0]['having_clause'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// if using SQL_CALC_FOUND_ROWS, add a LIMIT to avoid
|
||||||
|
// long delays. Returned count will be complete anyway.
|
||||||
|
|
||||||
|
if (PMA_MYSQL_INT_VERSION >= 40000) {
|
||||||
|
$count_query .= ' LIMIT 1';
|
||||||
|
}
|
||||||
|
|
||||||
// do not put the order_by_clause, it interferes
|
// do not put the order_by_clause, it interferes
|
||||||
// run the count query
|
// run the count query
|
||||||
if (PMA_MYSQL_INT_VERSION < 40000) {
|
if (PMA_MYSQL_INT_VERSION < 40000) {
|
||||||
|
Reference in New Issue
Block a user