fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [14071] API: fixed db_pdo::affected_rows()


From: Sigurd Nes
Subject: [Fmsystem-commits] [14071] API: fixed db_pdo::affected_rows()
Date: Wed, 30 Sep 2015 10:44:01 +0000

Revision: 14071
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=14071
Author:   sigurdne
Date:     2015-09-30 10:44:00 +0000 (Wed, 30 Sep 2015)
Log Message:
-----------
API: fixed db_pdo::affected_rows()

Modified Paths:
--------------
    branches/dev-syncromind/phpgwapi/inc/class.db_pdo.inc.php

Modified: branches/dev-syncromind/phpgwapi/inc/class.db_pdo.inc.php
===================================================================
--- branches/dev-syncromind/phpgwapi/inc/class.db_pdo.inc.php   2015-09-30 
00:03:51 UTC (rev 14070)
+++ branches/dev-syncromind/phpgwapi/inc/class.db_pdo.inc.php   2015-09-30 
10:44:00 UTC (rev 14071)
@@ -377,7 +377,10 @@
                                else
 */
                                {
-                                       $statement_object = 
$this->db->query($sql);
+                                       if($statement_object = 
$this->db->query($sql))
+                                       {
+                                               $this->affected_rows = 
$statement_object->rowCount();
+                                       }
                                        if($fetch)
                                        {
 /*




reply via email to

[Prev in Thread] Current Thread [Next in Thread]