<br><br><div class="gmail_quote">On Tue, Jun 19, 2012 at 4:47 PM, Rouslan Placella <span dir="ltr"><<a href="mailto:rouslan@placella.com" target="_blank">rouslan@placella.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On 19/06/12 12:10, Marc Delisle wrote:<br>
> Le 2012-06-19 06:50, Rouslan Placella a écrit :<br>
>> On 19/06/12 11:47, Marc Delisle wrote:<br>
>>> Le 2012-06-19 05:59, Atul Pratap Singh a écrit :<br>
>>>> Hi Marc,<br>
>>>> While taking a look at the Db-search functionality I noticed a bug.<br>
>>>> Steps:<br>
>>>> 1. Open db-search tab for a database.<br>
>>>> 2. Make a search by entering a keyword and selecting all tables.<br>
>>>> 3. From the 'browse' and 'delete' links in search results, select 'delete'<br>
>>>> for any table.<br>
>>>> 4. Notice that a DELETE query is sent to sql.php. But no actual deletion<br>
>>>> happens.<br>
>>>><br>
>>>> Regards<br>
>>><br>
>>> Hi Atul,<br>
>>> with current upstream master or your current repository, I cannot<br>
>>> reproduce this bug.<br>
>>><br>
>>> Please show us a short, sample export to reproduce the bug.<br>
>>><br>
>><br>
>> Try searching for "pen" in sakila.actor<br>
><br>
> Indeed, on the results page, trying to delete the one match in table<br>
> "address" gives this on the first GET to sql.php, as seen with Firebug:<br>
><br>
> #1451 - Cannot delete or update a parent row: a foreign key constraint<br>
> fails (`sakila`.`customer`, CONSTRAINT `fk_customer_address` FOREIGN KEY<br>
> (`address_id`) REFERENCES `address` (`address_id`) ON UPDATE CASCADE)<br>
><br>
> sql.php is not even called in an Ajax way.<br>
<br>
</div></div>sql.php is being called via the evil .load()[0] method. None the less,<br>
it should be possible to at least show the error</blockquote><div>Fixed the SQL results display while deleting in [0].</div><div><br></div><div>[0] <a href="https://github.com/zixtor/phpmyadmin/commit/4ccf9b29b217d4dadadc496d4427695f490be7ac">https://github.com/zixtor/phpmyadmin/commit/4ccf9b29b217d4dadadc496d4427695f490be7ac</a></div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> without rewriting the<br>
whole functionality as that will require quite a lot of changes on the<br>
server side as far as I can see.<br>
<br>
Bye,<br>
Rouslan<br>
<br>
[0]: <a href="http://api.jquery.com/load/" target="_blank">http://api.jquery.com/load/</a><br>
<div class="HOEnZb"><div class="h5"><br>
------------------------------------------------------------------------------<br>
Live Security Virtual Conference<br>
Exclusive live event will cover all the ways today's security and<br>
threat landscape has changed and how IT managers can respond. Discussions<br>
will include endpoint security, mobile security and the latest in malware<br>
threats. <a href="http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/" target="_blank">http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/</a><br>
_______________________________________________<br>
Phpmyadmin-devel mailing list<br>
<a href="mailto:Phpmyadmin-devel@lists.sourceforge.net">Phpmyadmin-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Atul Pratap Singh<div>Senior Undergraduate Student</div><div>Institute Of Technology,<br>Banaras Hindu University, Varanasi,<br>India.</div><br>