diff options
author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2005-06-24 22:15:54 +0000 |
---|---|---|
committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2005-06-24 22:15:54 +0000 |
commit | 80b2297913f395fbd8fadf345634ca14d486ba1c (patch) | |
tree | 9b5a57abefe7fc09fcecac3e0c05ac297d91c750 /src/libs/zbxdbhigh | |
parent | bf38a239eb16594b4f66e53894fad04e085a17a1 (diff) | |
download | zabbix-80b2297913f395fbd8fadf345634ca14d486ba1c.tar.gz zabbix-80b2297913f395fbd8fadf345634ca14d486ba1c.tar.xz zabbix-80b2297913f395fbd8fadf345634ca14d486ba1c.zip |
Minor changes.
git-svn-id: svn://svn.zabbix.com/trunk@1893 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'src/libs/zbxdbhigh')
-rw-r--r-- | src/libs/zbxdbhigh/db.c | 15 |
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) |