[Phpmyadmin-devel] add LIMIT once? ... or
Marc.Delisle at cegepsherbrooke.qc.ca
Tue Feb 27 13:58:36 CET 2007
Sebastian Mendel a écrit :
> if you browse a table, (or any other SELECT ...?) PMA always adds the LIMIT
> but why is this done at least twice?
> first it is done in sql.php
> but the function PMA_displayMessager() is called without the added LIMIT and
> now this function adds the LIMIT again!
> what was the reason not doing this once and give PMA_displayMessage() the
> query with the already added LIMIT?
in PMA_showMessage() there is a comment:
// Here we append the LIMIT added for navigation, to
// enable its display. Adding it higher in the code
// to $sql_query would create a problem when
// using the Refresh or Edit links.
More information about the Developers