Skip to content

Commit

Permalink
bug #4104 Can't edit updatable view when searching
Browse files Browse the repository at this point in the history
  • Loading branch information
lem9 committed Oct 5, 2013
1 parent c693975 commit 111923f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ phpMyAdmin - ChangeLog
======================

4.0.9.0 (not yet released)
- bug #4104 Can't edit updatable view when searching

4.0.8.0 (not yet released)
- bug #3988 Rename view is not working
Expand Down
5 changes: 2 additions & 3 deletions sql.php
Original file line number Diff line number Diff line change
Expand Up @@ -1237,10 +1237,9 @@
// hide edit and delete links:
// - for information_schema
// - if the result set does not contain all the columns of a unique key
// and we are not just browing all the columns of an updatable view
// (unless this is an updatable view)
$updatableView
= $justBrowsing
&& trim($analyzed_sql[0]['select_expr_clause']) == '*'
= trim($analyzed_sql[0]['select_expr_clause']) == '*'
&& PMA_Table::isUpdatableView($db, $table);
$editable = $resultSetContainsUniqueKey || $updatableView;
if (!empty($table) && (PMA_is_system_schema($db) || !$editable)) {
Expand Down

0 comments on commit 111923f

Please sign in to comment.