5.5
New big and small scope sunset and sunrise simulation New calculations for the day tabs Added missing icons to simple view New record popups Week ahead description popups Camping profile Tweak to some of the indoor tems
This commit is contained in:
@@ -15,6 +15,12 @@ function db(): PDO {
|
||||
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
|
||||
PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
|
||||
PDO::ATTR_EMULATE_PREPARES => false,
|
||||
// rowCount() on an UPDATE reports rows *matched*, not rows
|
||||
// changed. journal-save.php leans on that to tell "not yours /
|
||||
// no such row" apart from "saved, but nothing actually
|
||||
// differed" - without it, re-saving an entry you didn't edit
|
||||
// comes back as "Entry not found."
|
||||
PDO::MYSQL_ATTR_FOUND_ROWS => true,
|
||||
]
|
||||
);
|
||||
return $pdo;
|
||||
|
||||
Reference in New Issue
Block a user