<html><body bgcolor="#FFFFFF"><div><div><br></div><div>On 1 Agu 2011, at 20:29, Tyron Madlener <<a href="mailto:tyronx@gmail.com"><a href="mailto:tyronx@gmail.com">tyronx@gmail.com</a></a>> wrote:<br><br></div><div></div><blockquote type="cite"><div><span>On Mon, Aug 1, 2011 at 3:24 PM, Piotr Przybylski <<a href="mailto:piotr.prz@gmail.com"><a href="mailto:piotr.prz@gmail.com">piotr.prz@gmail.com</a></a>> wrote:</span><br><blockquote type="cite"><span>2011/8/1 Rouslan Placella <<a href="mailto:rouslan@placella.com"><a href="mailto:rouslan@placella.com">rouslan@placella.com</a></a>>:</span><br></blockquote><blockquote type="cite"><blockquote type="cite"><span>I noticed that the JS code that handles the recent tables in the</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>navigation frame operates under the assumption that there will only ever</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>be one dot in the database+table string. This is not true. To reproduce</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>the problem:</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>* create database 'abc.def'</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>* in this database create table 'ghi'</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>* browse this table</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>* now select it from the recent table dropdown</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>* you are dropped to main.php because PMA is looking for database 'abc'</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>and table 'def' (the 'ghi' part is discarded)</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>I'm not saying that it's sane to put dots in the database name, but it's</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>certainly legal. So maybe the check should be for the last occurrence of</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>a dot...</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>Then we will still have problems with dots in table names. From what</span><br></blockquote><blockquote type="cite"><span>you are saying it looks like this should be changed to get these names</span><br></blockquote><blockquote type="cite"><span>from some other place.</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><span></span><br><span>Indeed. Dots in identifiers was not an issue before MySQL 5.1.6. But</span><br><span>after 5.1.6 you can have dots everywhere (db names, tables, columns,</span><br><span>etc..).</span><br><span></span><br><span>This new behavior is documented at</span><br><span><a href="http://dev.mysql.com/doc/refman/5.1/en/identifiers.html"><a href="http://dev.mysql.com/doc/refman/5.1/en/identifiers.html">http://dev.mysql.com/doc/refman/5.1/en/identifiers.html</a></a></span><font class="Apple-style-span" color="#005001"><font class="Apple-style-span" color="#0023A3"><br></font></font></div></blockquote><br><div>Oh, right. I missed this part in MySQL docs. I will fix this soon.</div><div>Thanks for the feedback. :)</div><div><br></div><div><br></div><div>--</div><div>Aris Feryanto</div></div><div></div></body></html>