[libgda/LIBGDA_4.0] Corrected the MySQL and SQLite boolean handlers
- From: Vivien Malerba <vivien src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [libgda/LIBGDA_4.0] Corrected the MySQL and SQLite boolean handlers
- Date: Sun, 7 Feb 2010 19:54:51 +0000 (UTC)
commit f40b25910f447cba9d904a1adb7024487e45f925
Author: Vivien Malerba <malerba gnome-db org>
Date: Sun Feb 7 19:33:43 2010 +0100
Corrected the MySQL and SQLite boolean handlers
libgda/sqlite/gda-sqlite-handler-boolean.c | 2 +-
providers/mysql/gda-mysql-handler-boolean.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libgda/sqlite/gda-sqlite-handler-boolean.c b/libgda/sqlite/gda-sqlite-handler-boolean.c
index 23d94c7..b42c10d 100644
--- a/libgda/sqlite/gda-sqlite-handler-boolean.c
+++ b/libgda/sqlite/gda-sqlite-handler-boolean.c
@@ -188,7 +188,7 @@ gda_sqlite_handler_boolean_get_str_from_value (GdaDataHandler *iface, const GVal
hdl = GDA_SQLITE_HANDLER_BOOLEAN (iface);
g_return_val_if_fail (hdl->priv, NULL);
- return gda_value_stringify ((GValue *) value);
+ return g_strdup (g_value_get_boolean (value) ? "1" : "0");
}
static GValue *
diff --git a/providers/mysql/gda-mysql-handler-boolean.c b/providers/mysql/gda-mysql-handler-boolean.c
index 05640e1..1294419 100644
--- a/providers/mysql/gda-mysql-handler-boolean.c
+++ b/providers/mysql/gda-mysql-handler-boolean.c
@@ -188,7 +188,7 @@ gda_mysql_handler_boolean_get_str_from_value (GdaDataHandler *iface, const GValu
hdl = GDA_MYSQL_HANDLER_BOOLEAN (iface);
g_return_val_if_fail (hdl->priv, NULL);
- return gda_value_stringify ((GValue *) value);
+ return g_strdup (g_value_get_boolean (value) ? "1" : "0");
}
static GValue *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]