<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2015-01-12 11:55 GMT+01:00 Marc Delisle <span dir="ltr"><<a href="mailto:marc@infomarc.info" target="_blank">marc@infomarc.info</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Le 2015-01-11 10:12, Hugues Peccatte a écrit :<br>
<span class="">> Hi,<br>
><br>
> While looking at source code, I saw that the navigation tree icon for<br>
> table depends of NavigationTreeDefaultTabTable configuration variable,<br>
> but icon for view is always linked to tbl_structure.php.<br>
> Does someone know why the view icon isn't linked with this variable please?<br>
<br>
</span>Because the need to change the link target was never mentioned; also<br>
because the configuration variable's name is not<br>
NavigationTreeDefaultTabTableAndView.<br>
<span class="">><br>
> Currently, there are 5 possible values for this configuration variable:<br>
>  * 'tbl_structure.php' = fields list<br>
>  * 'tbl_sql.php' = SQL form<br>
>  * 'tbl_select.php' = search page<br>
>  * 'tbl_change.php' = insert row page<br>
>  * 'sql.php' = browse page<br>
<br>
</span>By the way, using script names as values for such variables has always<br>
bothered me. I would prefer more neutral strings like 'search',<br>
'structure' and so on. But this is a separate discussion.<br>
<span class=""><br>
><br>
> Maybe, one of them is not possible or not always (is "Insert row page"<br>
> always accessible?). Looking at Sakila DB, it seems that, on a view, I<br>
> can reach all these pages.<br>
<br>
</span>Not all views are insertable; see<br>
<a href="http://dev.mysql.com/doc/refman/5.7/en/view-updatability.html" target="_blank">http://dev.mysql.com/doc/refman/5.7/en/view-updatability.html</a>. However,<br>
phpMyAdmin does not attempt to detect this when showing the menu tabs.<br>
<br>
--<br>
Marc Delisle | phpMyAdmin<br>
</blockquote></div><br></div><div class="gmail_extra">Hi,</div><div class="gmail_extra"><br></div><div class="gmail_extra">Ok, thanks for your answer!</div><div class="gmail_extra">I knew that some views weren't insertable/updatable (even without knowing the rules). But if pMA does not attempt to detect this, what do you think about using the same configuration variable to define link in navigation tree please?</div><div class="gmail_extra">So this PR [1] could evolve to also apply to views.</div><div class="gmail_extra"><br></div><div class="gmail_extra">I agree that using the filenames is not a good think to me. I do not see how to update the config variable with new keyword values…</div><div class="gmail_extra"><br></div><div class="gmail_extra">[1] <a href="https://github.com/phpmyadmin/phpmyadmin/pull/1457">https://github.com/phpmyadmin/phpmyadmin/pull/1457</a></div><div class="gmail_extra"><br></div><div class="gmail_extra">Hugues.</div></div>