Skip to content

Commit

Permalink
bug #2787162 [interface] Table with name log_views is incorrectly dis…
Browse files Browse the repository at this point in the history
…played as a view
  • Loading branch information
helmo committed May 6, 2009
1 parent ecb07f5 commit b5046cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions ChangeLog
Expand Up @@ -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,
Expand Down
4 changes: 3 additions & 1 deletion libraries/Table.class.php
Expand Up @@ -245,8 +245,10 @@ static protected function _isView($db, $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)
Expand Down

0 comments on commit b5046cd

Please sign in to comment.