[postgres] offset/limit
This commit is contained in:
parent
2c1fa2fd7f
commit
509486e690
@ -101,7 +101,7 @@ class LogDatabase extends SimpleExtension {
|
||||
|
||||
$args[] = $offset;
|
||||
$args[] = $limit;
|
||||
$events = $database->get_all("SELECT * FROM score_log $where ORDER BY id DESC LIMIT ?,?", $args);
|
||||
$events = $database->get_all("SELECT * FROM score_log $where ORDER BY id DESC OFFSET ? LIMIT ?", $args);
|
||||
|
||||
$this->theme->display_events($events, $page_num, 100);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user