[gom] gom: Better debug for gom_command_bind_param()
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gom] gom: Better debug for gom_command_bind_param()
- Date: Mon, 16 Jun 2014 10:52:42 +0000 (UTC)
commit f786c45a6325cba74d2c449b5ff80386ac2c04ab
Author: Bastien Nocera <hadess hadess net>
Date: Mon Jun 16 12:40:36 2014 +0200
gom: Better debug for gom_command_bind_param()
gom/gom-command.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gom/gom-command.c b/gom/gom-command.c
index ba65d5c..2e13272 100644
--- a/gom/gom-command.c
+++ b/gom/gom-command.c
@@ -59,6 +59,8 @@ gom_command_bind_param (GomCommand *command,
priv = command->priv;
+ g_debug("Binding gtype %s (%d).", g_type_name(G_VALUE_TYPE(value)), G_VALUE_TYPE(value));
+
switch (G_VALUE_TYPE(value)) {
case G_TYPE_BOOLEAN:
sqlite3_bind_int(priv->stmt, param, g_value_get_boolean(value));
@@ -149,7 +151,7 @@ gom_command_bind_param (GomCommand *command,
}
break;
}
- g_warning("Failed to bind gtype %s.", g_type_name(G_VALUE_TYPE(value)));
+ g_warning("Failed to bind gtype %s (%d).", g_type_name(G_VALUE_TYPE(value)), G_VALUE_TYPE(value));
g_assert_not_reached();
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]