[libgda/gtk3] gda_set_new_inline(): handle timestamp and time data types



commit c68e5b6686ff86f01ab02c3130af5656ec03619d
Author: Vivien Malerba <malerba gnome-db org>
Date:   Tue Feb 1 21:27:56 2011 +0100

    gda_set_new_inline(): handle timestamp and time data types

 libgda/gda-set.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/libgda/gda-set.c b/libgda/gda-set.c
index 8c1d705..1b98dda 100644
--- a/libgda/gda-set.c
+++ b/libgda/gda-set.c
@@ -548,6 +548,10 @@ gda_set_new_inline (gint nb, ...)
 			g_value_set_ulong (value, va_arg (ap, gulong));
 		else if (type == G_TYPE_GTYPE)
 			g_value_set_gtype (value, va_arg(ap, GType));
+		else if (type == GDA_TYPE_TIMESTAMP)
+			gda_value_set_timestamp (value, va_arg(ap, GdaTimestamp *));
+		else if (type == GDA_TYPE_TIME)
+			gda_value_set_time (value, va_arg(ap, GdaTime *));
 		else {
 			g_warning (_("%s() does not handle values of type '%s'."),
 				   __FUNCTION__, g_type_name (type));



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]