Set default fetch mode to fetch assoc.

This commit is contained in:
kj 2022-07-24 00:29:34 -04:00
parent c57ca191b1
commit 2c7938a0c3

View File

@ -39,6 +39,7 @@ class Database extends PDO {
); );
} }
self::$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); self::$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
self::$db->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC);
} }
return self::$db; return self::$db;
} }