diff options
| author | alex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-02-27 12:53:58 +0000 |
|---|---|---|
| committer | alex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-02-27 12:53:58 +0000 |
| commit | 2713d9853752255ed1b53c7f9ed2abf92af5cac8 (patch) | |
| tree | 9ba9dcf1536e720f3ebbc8643de218e63b032ed2 /src/libs/zbxdb | |
| parent | c8b70e6fece0a0aed254bb34cdc02b07dcf8c08e (diff) | |
| download | zabbix-2713d9853752255ed1b53c7f9ed2abf92af5cac8.tar.gz zabbix-2713d9853752255ed1b53c7f9ed2abf92af5cac8.tar.xz zabbix-2713d9853752255ed1b53c7f9ed2abf92af5cac8.zip | |
- added new table 'ids' which will store last IDs for all tables (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@3841 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'src/libs/zbxdb')
| -rw-r--r-- | src/libs/zbxdb/db.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libs/zbxdb/db.c b/src/libs/zbxdb/db.c index 2ae3151d..ab6c2fde 100644 --- a/src/libs/zbxdb/db.c +++ b/src/libs/zbxdb/db.c @@ -362,7 +362,8 @@ int zbx_db_vexecute(const char *fmt, va_list args) { if(mysql_query(conn,sql) != 0) { - zabbix_log(LOG_LEVEL_ERR, "Query failed:%s [%d]", mysql_error(conn), mysql_errno(conn) ); + zabbix_log(LOG_LEVEL_ERR, "Query failed: [%s] %s [%d]", + sql, mysql_error(conn), mysql_errno(conn) ); switch(mysql_errno(conn)) { case CR_SERVER_GONE_ERROR: case CR_CONNECTION_ERROR: |
