[Phpmyadmin-devel] Refactoring db_search.php

Rouslan Placella rouslan at placella.com
Tue Jun 19 12:04:13 CEST 2012


On 19/06/12 10:59, Atul Pratap Singh wrote:
> Hi Marc,
> While taking a look at the Db-search functionality I noticed a bug.
> Steps:
> 1. Open db-search tab for a database.
> 2. Make a search by entering a keyword and selecting all tables.
> 3. From the 'browse' and 'delete' links in search results, select 'delete'
> for any table.
> 4. Notice that a DELETE query is sent to sql.php. But no actual deletion
> happens.
>
> Regards

As far as I know this is due to the badly coded deleteResult() function 
in db_search.js file. If the rows can be deleted, they will be deleted. 
But in the case where there is an error, for example due to referential 
constrains, no error message is displayed.

Bye,
Rouslan




More information about the Developers mailing list