Commit:    039c829b6aa508be418b43b8d618fabecef226f6
Author:    Kalle Sommer Nielsen <[email protected]>         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


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to