summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b1d3856)
raw | patch | inline | side by side (parent: b1d3856)
author | Florian Forster <octo@huhu.verplant.org> | |
Tue, 7 Apr 2009 07:37:09 +0000 (09:37 +0200) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Tue, 7 Apr 2009 07:37:09 +0000 (09:37 +0200) |
Especially print the name of the field.
src/dbi.c | patch | blob | history |
diff --git a/src/dbi.c b/src/dbi.c
index 5be9cae43c1d28cb8b6febbe2161a29e7d8e62ba..ce4cd02f551a5cc1f47aca54d1a2c5425764dd11 100644 (file)
--- a/src/dbi.c
+++ b/src/dbi.c
else
sstrncpy (buffer, value, buffer_size);
}
+ /* DBI_TYPE_BINARY */
+ /* DBI_TYPE_DATETIME */
else
{
- ERROR ("dbi plugin: cdbi_result_get: Don't know how to handle "
- "source type %hu.", src_type);
+ const char *field_name;
+
+ field_name = dbi_result_get_field_name (res, index);
+ if (field_name == NULL)
+ field_name = "<unknown>";
+
+ ERROR ("dbi plugin: Column `%s': Don't know how to handle "
+ "source type %hu.",
+ field_name, src_type);
return (-1);
}