[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 10/30: Database improve : new function get_af
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 10/30: Database improve : new function get_affected returns the number of rows affected by the last query |
Date: |
Tue, 02 Jun 2015 22:29:07 +0000 |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 7d9872c458b08dc5806364edfd58ea46d5becd58
Author: Dany De Bontridder <address@hidden>
Date: Sun May 31 13:18:29 2015 +0200
Database improve : new function get_affected returns the number of rows
affected by the last query
---
include/class_database.php | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/include/class_database.php b/include/class_database.php
index e7cfe93..37ebdac 100644
--- a/include/class_database.php
+++ b/include/class_database.php
@@ -533,6 +533,13 @@ class Database
$r=pg_fetch_row($this->ret, 0);
return $r[0];
}
+ /**
+ * @brief return the number of rows affected by the previous query
+ */
+ function get_affected()
+ {
+ return Database::num_row($this->ret);
+ }
/**\brief purpose return the result of a sql statment
* in a array
- [Noalyss-commit] [noalyss] branch master updated (38c52bf -> 255124b), Dany De Bontridder, 2015/06/02
- [Noalyss-commit] [noalyss] 01/30: Task #1118 - Partage de notes via le Pense-bête #1118 : partage de note Correction bug, Dany De Bontridder, 2015/06/02
- [Noalyss-commit] [noalyss] 03/30: Merge tag 'rel6803', Dany De Bontridder, 2015/06/02
- [Noalyss-commit] [noalyss] 02/30: Task #1123 - Visualisation/présentation de la balance: SOLDE #1123 : PRINTBAL ajout du solde quand on utilise les sous-niveaux, Dany De Bontridder, 2015/06/02
- [Noalyss-commit] [noalyss] 05/30: Icon in the menu, Dany De Bontridder, 2015/06/02
- [Noalyss-commit] [noalyss] 06/30: #1118 : partage de note Esthétique Zoom des notes partagées, Dany De Bontridder, 2015/06/02
- [Noalyss-commit] [noalyss] 04/30: Icon in the menu, Dany De Bontridder, 2015/06/02
- [Noalyss-commit] [noalyss] 07/30: Improve method HtmlInput::title_box, Dany De Bontridder, 2015/06/02
- [Noalyss-commit] [noalyss] 08/30: #1118 : partage de note Ne peut partager note non sauvée, Dany De Bontridder, 2015/06/02
- [Noalyss-commit] [noalyss] 09/30: #1118 : partage de note Esthétique zoom, Dany De Bontridder, 2015/06/02
- [Noalyss-commit] [noalyss] 10/30: Database improve : new function get_affected returns the number of rows affected by the last query,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 13/30: Administration user : add condition if no folder exists + esthetic, Dany De Bontridder, 2015/06/02
- [Noalyss-commit] [noalyss] 11/30: Remove table priv_user, the local admin and plugin user are obsolete, Dany De Bontridder, 2015/06/02
- [Noalyss-commit] [noalyss] 16/30: Administration user : esthetic, Dany De Bontridder, 2015/06/02
- [Noalyss-commit] [noalyss] 14/30: Administration user : add condition if no folder exists + esthetic, Dany De Bontridder, 2015/06/02
- [Noalyss-commit] [noalyss] 15/30: Administration user : esthetic + rewrite add user Correct bug : ajax_admin.js, Dany De Bontridder, 2015/06/02
- [Noalyss-commit] [noalyss] 17/30: Administration user : esthetic, Dany De Bontridder, 2015/06/02
- [Noalyss-commit] [noalyss] 18/30: HtmlInput : add a new function to create an empty anchor, Dany De Bontridder, 2015/06/02
- [Noalyss-commit] [noalyss] 12/30: Administration user : Add / remove right on folder in ajax, Dany De Bontridder, 2015/06/02
- [Noalyss-commit] [noalyss] 19/30: HtmlInput :: anchor_empty add a title, Dany De Bontridder, 2015/06/02
- [Noalyss-commit] [noalyss] 20/30: Message when no financial ledger are found, Dany De Bontridder, 2015/06/02