com web/bugs: Map the MDB2_FETCHMODE_* constants to their PDO counterparts, this should once again honor assoc/num specific queries:
include/classes/ bug_pdo.php
| From: | Kalle Sommer Nielsen | Date: | Mon, 27 Aug 2018 08:55:35 +0000 |
| Subject: | com web/bugs: Map the MDB2_FETCHMODE_* constants to their PDO counterparts, this should once again honor assoc/num specific queries: include/classes/ bug_pdo.php |
||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-27240@lists.php.net to get a copy of this message | ||
Commit: 039c829b6aa508be418b43b8d618fabecef226f6
Author: Kalle Sommer Nielsen <kalle@php.net> Mon, 27 Aug 2018 10:55:35 +0200
Parents: a72801967eca68d9c08571557bbd55f60ec18966
Branches: master
Link: http://git.php.net/?p=web/bugs.git;a=commitdiff;h=039c829b6aa508be418b43b8d618fabecef226f6
Log:
Map the MDB2_FETCHMODE_* constants to their PDO counterparts, this should once again honor assoc/num
specific queries
Changed paths:
M include/classes/bug_pdo.php
Diff:
diff --git a/include/classes/bug_pdo.php b/include/classes/bug_pdo.php
index b787168..57f70d9 100644
--- a/include/classes/bug_pdo.php
+++ b/include/classes/bug_pdo.php
@@ -10,8 +10,8 @@
*/
// Define missing constants
-define('MDB2_FETCHMODE_ASSOC', null);
-define('MDB2_FETCHMODE_ORDERED', null);
+define('MDB2_FETCHMODE_ASSOC', PDO::FETCH_ASSOC);
+define('MDB2_FETCHMODE_ORDERED', PDO::FETCH_NUM);
define('MDB2_PREPARE_MANIP', null);
class Bug_PDO extends PDO