<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 9, 2015 at 5:28 PM, Marc Delisle <span dir="ltr"><<a href="mailto:marc@infomarc.info" target="_blank">marc@infomarc.info</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi,<br>
<br>
Dan Ungureanu was asking me about some dead code, and this made me<br>
realize that we might have a bug; however I'm not sure whether this was<br>
intentional or not.<br>
<br>
To see what I mean, use the MAINT_4_0_10 branch and browse a table that<br>
has many rows: you'll see that the displayed query shows the proper<br>
generated LIMIT clause, which changes when you click on the Next icon.<br>
<br>
This comes from [0] which uses a GLOBAL variable set in [1].<br>
<br>
Starting with 4.1, due to some refactoring, the generated LIMIT clause<br>
is no longer shown.<br>
<br>
Intentional or not?<br>
<br>
[0]<br>
<a href="https://github.com/phpmyadmin/phpmyadmin/blob/MAINT_4_0_10/libraries/Util.class.php#L1168" rel="noreferrer" target="_blank">https://github.com/phpmyadmin/phpmyadmin/blob/MAINT_4_0_10/libraries/Util.class.php#L1168</a><br>
<br>
[1] <a href="https://github.com/phpmyadmin/phpmyadmin/blob/MAINT_4_0_10/sql.php#L577" rel="noreferrer" target="_blank">https://github.com/phpmyadmin/phpmyadmin/blob/MAINT_4_0_10/sql.php#L577</a><br>
<br>
--<br>
Marc Delisle | phpMyAdmin<br>
<br></blockquote></div><br clear="all"><div>Not sure whether it's intentional or not, but it corresponds well with the message "Showing rows 0 - 24 (98 total...". If we show the LIMIT 0, 25 in the query "98 total" might look confusing.</div><div><br></div>-- <br><div class="gmail_signature">Thanks and Regards,<div><br></div><div>Madhura Jayaratne<br><div><br></div></div></div>
</div></div>