Menu

#2866 (ok 3.1.5) Table is displayed as view

3.1.4
fixed
Interface (555)
1
2013-06-11
2009-05-05
No

Table with name 'log_views' is incorrectly displayed as a view in phpMyAdmin interface. phpMyAdmin 3.1.4, MySQL 5.0.45, PHP 5. Created using:

CREATE TABLE IF NOT EXISTS `log_views` (
`id` int(10) unsigned NOT NULL auto_increment COMMENT 'View ID',
`visit_id` int(10) unsigned NOT NULL COMMENT 'Visit ID',
`section_id` int(10) unsigned NOT NULL COMMENT 'Section ID',
`uri` varchar(2083) NOT NULL COMMENT 'URI',
`ip` varchar(39) NOT NULL COMMENT 'IP Address',
`date_visited` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP COMMENT 'Date Visited',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='View Log';

Problem seems to be interface only. From PHP or console, table can be used as normal, but from phpMyAdmin only the view features are available. 'View' has to be dropped manually because phpMyAdmin generates a DROP VIEW command instead of a DROP TABLE command (which fails, because there is no view).

Discussion

  • Herman van Rink

    Herman van Rink - 2009-05-05
    • assigned_to: nobody --> helmo
     
  • Herman van Rink

    Herman van Rink - 2009-05-05

    Confirmed.

    We currently check if PMA_Table::sGetStatusInfo($db, $table, 'Comment') begins with 'view'. And your comment matches :)

    I see a solution in using something like PMA_Table::sGetStatusInfo($db, $table, 'TABLE_TYPE'), but due to the history of this code I will have to do some digging around the compatibility in different MySQL versions.

     
  • Marc Delisle

    Marc Delisle - 2009-05-05

    Helmo,
    in phpMyAdmin 3.x we require MySQL 5.x or newer.

     
  • Herman van Rink

    Herman van Rink - 2009-05-06

    Fixed in subversion for 3.1.5 and 3.2.

    Thanks for reporting

     
  • Herman van Rink

    Herman van Rink - 2009-05-06
    • priority: 5 --> 1
    • summary: Table is displayed as view --> (ok 3.1.5) Table is displayed as view
    • status: open --> open-fixed
     
  • Steven Richards

    Steven Richards - 2009-05-06

    Thanks for the quick response (and the explanation so I can avoid it in the meantime).

     
  • Marc Delisle

    Marc Delisle - 2009-05-15
    • status: open-fixed --> closed-fixed
     
  • Michal Čihař

    Michal Čihař - 2013-06-11
    • Status: closed-fixed --> fixed
     
MongoDB Logo MongoDB