bug #2090002 [display] Cannot edit row in VIEW
This commit is contained in:
@@ -20,6 +20,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA
|
|||||||
+ rfe #1778908 [auth] arbitrary server auth can now also accept port
|
+ rfe #1778908 [auth] arbitrary server auth can now also accept port
|
||||||
- patch #2089240 [export] handle correctly switching SQL modes
|
- patch #2089240 [export] handle correctly switching SQL modes
|
||||||
+ rfe #1612724 [export] add option to export without comments
|
+ rfe #1612724 [export] add option to export without comments
|
||||||
|
- bug #2090002 [display] Cannot edit row in VIEW
|
||||||
|
|
||||||
3.0.0.0 (not yet released)
|
3.0.0.0 (not yet released)
|
||||||
+ [export] properly handle line breaks for YAML, thanks to Dan Barry -
|
+ [export] properly handle line breaks for YAML, thanks to Dan Barry -
|
||||||
|
@@ -1935,7 +1935,11 @@ function PMA_getUniqueCondition($handle, $fields_cnt, $fields_meta, $row, $force
|
|||||||
//
|
//
|
||||||
// But orgtable is present only with mysqli extension so the
|
// But orgtable is present only with mysqli extension so the
|
||||||
// fix is only for mysqli.
|
// fix is only for mysqli.
|
||||||
if (isset($meta->orgtable) && $meta->table != $meta->orgtable) {
|
// Also, do not use the original table name if we are dealing with
|
||||||
|
// a view because this view might be updatable.
|
||||||
|
// (The isView() verification should not be costly in most cases
|
||||||
|
// because there is some caching in the function).
|
||||||
|
if (isset($meta->orgtable) && $meta->table != $meta->orgtable && ! PMA_Table::isView($GLOBALS['db'], $meta->table)) {
|
||||||
$meta->table = $meta->orgtable;
|
$meta->table = $meta->orgtable;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user