summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9925e12)
raw | patch | inline | side by side (parent: 9925e12)
author | Sebastian Harl <sh@tokkee.org> | |
Tue, 26 Aug 2008 14:14:36 +0000 (16:14 +0200) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Tue, 26 Aug 2008 17:13:34 +0000 (19:13 +0200) |
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/postgresql.c | patch | blob | history |
diff --git a/src/postgresql.c b/src/postgresql.c
index 046cf5a68354fda7c29b978f0502d483ba007e9b..b1de07fdd6434601193513028cc01ad29175815c 100644 (file)
--- a/src/postgresql.c
+++ b/src/postgresql.c
else
log_warn ("Ignoring unknown config key \"%s\".", c->key);
}
+
+ if (NULL == query->query) {
+ log_err ("Query \"%s\" does not include an SQL query string - "
+ "please check your configuration.", query->name);
+ c_psql_query_delete (query);
+ --queries_num;
+ return 1;
+ }
return 0;
} /* c_psql_config_query */