diff options
author | Glebs Ivanovskis <git-no-reply@zabbix.com> | 2016-02-10 19:10:14 +0300 |
---|---|---|
committer | Glebs Ivanovskis <git-no-reply@zabbix.com> | 2016-02-10 19:10:14 +0300 |
commit | d6a3ba471b8572ed6c4c9230dbce51143bc64727 (patch) | |
tree | 06d555cb5beee32443202a1c7299b9b948c59e51 /include/zbxdb.h | |
parent | 17326582f381d3073d2a2455258bd7faa3da2d6f (diff) |
.......PS. [ZBX-4148] wrapped MySQL native MYSQL_RES into generic DB_RESULT
Diffstat (limited to 'include/zbxdb.h')
-rw-r--r-- | include/zbxdb.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/include/zbxdb.h b/include/zbxdb.h index 36e35ee9f92..7b23b2215ee 100644 --- a/include/zbxdb.h +++ b/include/zbxdb.h @@ -28,12 +28,8 @@ #define ZBX_MAX_SQL_SIZE 262144 /* 256KB */ -typedef char **DB_ROW; /* assuming that MYSQL_ROW is char ** as well */ -#ifdef HAVE_MYSQL -typedef struct st_mysql_res *DB_RESULT; /* assuming MYSQL_RES is defined as struct st_mysql_res */ -#else +typedef char **DB_ROW; typedef struct ZBX_DB_RESULT *DB_RESULT; -#endif #ifdef HAVE_SQLITE3 /* we have to put double % here for sprintf */ |