bug #2787162 [interface] Table with name log_views is incorrectly displayed as a view

This commit is contained in:
Herman van Rink
2009-05-06 08:29:26 +00:00
parent ecb07f54e1
commit b5046cd0d3
2 changed files with 4 additions and 1 deletions

View File

@@ -13,6 +13,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA
- bug [calendar] js error "window.parent.addEvent is not a function"
- patch #2773818 [export] Invalid "Content-Encoding" header,
thanks to abignale - abignale
- bug #2787162 [interface] Table with name 'log_views' is incorrectly displayed as a view
3.1.4.0 (2009-04-25)
+ patch #1808339 [doc] Apache SSLOptions and StdEnvVars FAQ,

View File

@@ -245,8 +245,10 @@ class PMA_Table
// from 5.0.13 returns 'VIEW'.
// use substr() because the comment might contain something like:
// (VIEW 'BASE2.VTEST' REFERENCES INVALID TABLE(S) OR COLUMN(S) OR FUNCTION)
// use 'Engine' == NULL to exclude regular tables where the comment starts with the word 'view'
$comment = strtoupper(PMA_Table::sGetStatusInfo($db, $table, 'Comment'));
return substr($comment, 0, 4) == 'VIEW';
$engine = PMA_Table::sGetStatusInfo($db, $table, 'Engine');
return ( substr($comment, 0, 4) == 'VIEW' && $engine == NULL);
}
static public function sGetToolTip($db, $table)