Skip to content
Browse files

Treat queries with no limit as full table scans

  • Loading branch information...
1 parent 5583109 commit ac668d1331337bd2d0315916d410a6d8937887e0 @vrana committed Jul 29, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 adminer/include/adminer.inc.php
  2. +1 −1 adminer/static/functions.js
View
2 adminer/include/adminer.inc.php
@@ -279,7 +279,7 @@ function selectOrderPrint($order, $columns, $indexes) {
*/
function selectLimitPrint($limit) {
echo "<fieldset><legend>" . lang('Limit') . "</legend><div>"; // <div> for easy styling
- echo "<input name='limit' size='3' value='" . h($limit) . "'>";
+ echo "<input name='limit' size='3' value='" . h($limit) . "' onchange='selectFieldChange(this.form);'>";
echo "</div></fieldset>\n";
}
View
2 adminer/static/functions.js
@@ -231,7 +231,7 @@ function selectFieldChange(form) {
return true;
}
}
- var ok = true;
+ var ok = form.limit.value;
var selects = form.getElementsByTagName('select');
var group = false;
var columns = {};

0 comments on commit ac668d1

Please sign in to comment.
Something went wrong with that request. Please try again.