Set default fetch mode to fetch assoc.
This commit is contained in:
parent
c57ca191b1
commit
2c7938a0c3
@ -39,6 +39,7 @@ class Database extends PDO {
|
||||
);
|
||||
}
|
||||
self::$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
||||
self::$db->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC);
|
||||
}
|
||||
return self::$db;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user