This commit is contained in:
Niko Storni 2022-06-17 18:59:32 +02:00
parent e8e9346a70
commit e8c58e8c15

View file

@ -131,8 +131,8 @@ class MainController extends AppController {
$page = intval($this->request->query('page')); $page = intval($this->request->query('page'));
$conn = ConnectionManager::get('default'); $conn = ConnectionManager::get('default');
$stmt = $conn->execute('SELECT COUNT(id) AS Total FROM claim'); // $stmt = $conn->execute('SELECT COUNT(id) AS Total FROM claim');
$count = $stmt->fetch(\PDO::FETCH_OBJ); // $count = $stmt->fetch(\PDO::FETCH_OBJ);
$numClaims = 20000000; $numClaims = 20000000;
$stmt = $conn->execute('SELECT MAX(id) AS MaxId FROM claim'); $stmt = $conn->execute('SELECT MAX(id) AS MaxId FROM claim');