[gom] gom: Add warning when a column type is unhandled
- From: Mathieu Bridon <mbridon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gom] gom: Add warning when a column type is unhandled
- Date: Tue, 6 May 2014 18:34:06 +0000 (UTC)
commit 4232ab9f4c356345585f2eb09cbf73a65d36dd91
Author: Mathieu Bridon <bochecha fedoraproject org>
Date: Wed May 7 02:06:35 2014 +0800
gom: Add warning when a column type is unhandled
gom/gom-command-builder.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gom/gom-command-builder.c b/gom/gom-command-builder.c
index b2d0dc8..6a02562 100644
--- a/gom/gom-command-builder.c
+++ b/gom/gom-command-builder.c
@@ -78,6 +78,9 @@ sql_type_for_column (GParamSpec *pspec)
return "INTEGER";
if (g_param_spec_get_qdata(pspec, GOM_RESOURCE_FROM_BYTES_FUNC) != NULL)
return "BLOB";
+
+ g_warning("Ignoring column %s of invalid type %s\n",
+ pspec->name, g_type_name(pspec->value_type));
return NULL;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]