summaryrefslogtreecommitdiffstats
path: root/src/libs/zbxdbhigh/db.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/zbxdbhigh/db.c')
-rw-r--r--src/libs/zbxdbhigh/db.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/libs/zbxdbhigh/db.c b/src/libs/zbxdbhigh/db.c
index 8fe5cf9e..86d7d7f7 100644
--- a/src/libs/zbxdbhigh/db.c
+++ b/src/libs/zbxdbhigh/db.c
@@ -240,6 +240,21 @@ int DBinsert_id()
}
/*
+ * Returs number of affected rows of last select, update, delete or replace
+ */
+long DBaffected_rows()
+{
+#ifdef HAVE_MYSQL
+ /* It actually returns my_ulonglong */
+ return (long)mysql_affected_rows(&mysql);
+#endif
+#ifdef HAVE_PGSQL
+ NOT IMPLEMENTED YET
+#endif
+}
+
+
+/*
* Return SUCCEED if result conains no records
*/
/*int DBis_empty(DB_RESULT *result)