summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 44f3233)
raw | patch | inline | side by side (parent: 44f3233)
author | Sebastian Harl <sh@tokkee.org> | |
Tue, 30 Mar 2010 20:09:55 +0000 (22:09 +0200) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Tue, 30 Mar 2010 20:09:55 +0000 (22:09 +0200) |
src/postgresql.c | patch | blob | history |
diff --git a/src/postgresql.c b/src/postgresql.c
index 99e40fecd5328ab8cb9ba94fdfe9cf0ae0042876..d390abdf7b56a721f5cf9a968d3d58810f71c90a 100644 (file)
--- a/src/postgresql.c
+++ b/src/postgresql.c
static int c_psql_read (user_data_t *ud)
{
c_psql_database_t *db;
+
+ int success = 0;
int i;
if ((ud == NULL) || (ud->data == NULL)) {
&& (udb_query_check_version (q, db->server_version) <= 0))
continue;
- c_psql_exec_query (db, q, prep_area);
+ if (0 == c_psql_exec_query (db, q, prep_area))
+ success = 1;
}
+
+ if (! success)
+ return -1;
return 0;
} /* c_psql_read */