Skip to content

Commit

Permalink
patch #2561433 [structure] Display true number of rows in a view if i…
Browse files Browse the repository at this point in the history
…t contains less than MaxExactCountViews
  • Loading branch information
lem9 committed Feb 4, 2009
1 parent e71a7f8 commit 34b241d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Expand Up @@ -19,6 +19,9 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA
+ [lang] Mongolian update, thanks to Bayarsaikhan Enkhtaivan - bayaraa
- patch #2553372 [display] DB comment tooltips not shown on navi,
thanks to Erdem - ahard
- patch #2561433 [structure] Display true number of rows in a view
if it contains less than MaxExactCountViews,
thanks to Virsacer - virsacer

3.1.2.0 (2009-01-19)
- bug #1253252 [display] Can't NULL a column with relation defined
Expand Down
8 changes: 5 additions & 3 deletions db_structure.php
Expand Up @@ -390,9 +390,11 @@ function PMA_TableHeader($db_is_information_schema = false)
// that needs to be repaired
if (isset($each_table['TABLE_ROWS']) && ($each_table['ENGINE'] != null || $table_is_view)) {
if ($table_is_view) {
$row_count_pre = '~';
$sum_row_count_pre = '~';
$show_superscript = PMA_showHint(PMA_sanitize(sprintf($strViewHasAtLeast, '[a@./Documentation.html#cfg_MaxExactCountViews@_blank]', '[/a]')));
if ($each_table['TABLE_ROWS'] >= $GLOBALS['cfg']['MaxExactCountViews']){
$row_count_pre = '~';
$sum_row_count_pre = '~';
$show_superscript = PMA_showHint(PMA_sanitize(sprintf($strViewHasAtLeast, '[a@./Documentation.html#cfg_MaxExactCountViews@_blank]', '[/a]')));
}
} elseif($each_table['ENGINE'] == 'InnoDB' && (! $each_table['COUNTED'])) {
// InnoDB table: we did not get an accurate row count
$row_count_pre = '~';
Expand Down

0 comments on commit 34b241d

Please sign in to comment.