summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9d2c630)
raw | patch | inline | side by side (parent: 9d2c630)
author | Florian Forster <octo@huhu.verplant.org> | |
Sun, 9 Nov 2008 10:21:25 +0000 (11:21 +0100) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Sun, 9 Nov 2008 10:21:25 +0000 (11:21 +0100) |
Version 0.8 of the libdbi deprecates `dbi_conn_error_flag', so use the other
function.
function.
src/dbi.c | patch | blob | history |
diff --git a/src/dbi.c b/src/dbi.c
index 484c604c84580245473188d3b359482cffce0425..e1dd1bc61bf163d3faaf103caa1caf63d4d56975 100644 (file)
--- a/src/dbi.c
+++ b/src/dbi.c
}
connection = dbi_result_get_conn (res);
- if (dbi_conn_error_flag (connection) != 0)
+ if (dbi_conn_error (connection, NULL) != 0)
{
char errbuf[1024];
ERROR ("dbi plugin: cdbi_result_get: dbi_result_get_*_idx failed: %s.",
const char *inst;
inst = dbi_result_get_string (res, q->instances[i]);
- if (dbi_conn_error_flag (db->connection) != 0)
+ if (dbi_conn_error (db->connection, NULL) != 0)
{
char errbuf[1024];
ERROR ("dbi plugin: cdbi_read_database_query (%s, %s): "
status = dbi_result_next_row (res);
if (status != 1)
{
- if (dbi_conn_error_flag (db->connection) != 0)
+ if (dbi_conn_error (db->connection, NULL) != 0)
{
char errbuf[1024];
WARNING ("dbi plugin: cdbi_read_database_query (%s, %s): "