[Phpmyadmin-devel] (no subject)

Supun Nakandala supun.nakandala at gmail.com
Thu Jul 4 19:25:56 CEST 2013

Hi Marc,
I identified seven situations where the method
PMA_sendResponseForNoResultsReturned runs.
 1-> When browsing an empty table
 2-> When executing a query on a non empty table which returns zero results
 3-> When executing a query on an empty table
 4-> When executing an INSERT, UPDATE, DELETE query from the SQL  tab
 5-> When deleting a row from BROWSE tab
 6-> When searching using the SEARCH tab which returns zero results
 7-> When changing the structure of the table except change operation

In the first case the $goto variable is not initialized. But in the second,
third and fourth cases it is initialized to tbl_sql.php.
In the third, fourth and fifth cases the $goto variable is initialized with
sql.php itself with certain other url parameters.
In the 7 th case $goto variable is set to $tbl_structure.php

But I identified all these cases send Ajax responses where $goto variable
or sending header location were never used. I would like to know whether my
test scenarios are comprehensive if so shall I remove the redundant code
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.phpmyadmin.net/pipermail/developers/attachments/20130704/7b8d8a2f/attachment.html>

More information about the Developers mailing list