pdo - fetch assoc only
This commit is contained in:
parent
25982f0475
commit
7b713e2576
@ -54,7 +54,7 @@ class dba_pdo extends dba_driver {
|
|||||||
$select = ((stripos($sql,'select') === 0) ? true : false);
|
$select = ((stripos($sql,'select') === 0) ? true : false);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$result = $this->db->query($sql);
|
$result = $this->db->query($sql, PDO::FETCH_ASSOC);
|
||||||
}
|
}
|
||||||
catch(PDOException $e) {
|
catch(PDOException $e) {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user