mysql can go choke on a bucket of cocks
This commit is contained in:
parent
a4fe003878
commit
ba814aebaa
@ -99,9 +99,9 @@ class LogDatabase extends SimpleExtension {
|
||||
}
|
||||
}
|
||||
|
||||
$args[] = $offset;
|
||||
$args[] = $limit;
|
||||
$events = $database->get_all("SELECT * FROM score_log $where ORDER BY id DESC OFFSET ? LIMIT ?", $args);
|
||||
$args[] = $offset;
|
||||
$events = $database->get_all("SELECT * FROM score_log $where ORDER BY id DESC LIMIT ? OFFSET ?", $args);
|
||||
|
||||
$this->theme->display_events($events, $page_num, 100);
|
||||
}
|
||||
|
@ -70,9 +70,9 @@ class AliasEditor implements Extension {
|
||||
|
||||
$alias_per_page = $config->get_int('alias_items_per_page', 30);
|
||||
|
||||
$query = "SELECT oldtag, newtag FROM aliases ORDER BY newtag ASC OFFSET ? LIMIT ?";
|
||||
$query = "SELECT oldtag, newtag FROM aliases ORDER BY newtag ASC LIMIT ? OFFSET ?";
|
||||
$alias = $database->db->GetAssoc($query,
|
||||
array($page_number * $alias_per_page, $alias_per_page)
|
||||
array($alias_per_page, $page_number * $alias_per_page)
|
||||
);
|
||||
|
||||
$total_pages = ceil($database->db->GetOne("SELECT COUNT(*) FROM aliases") / $alias_per_page);
|
||||
|
Loading…
x
Reference in New Issue
Block a user