[libgda] Handle time and timestamp types in gda_set_set_holder_value()



commit d976eed8054619a0aa85a4460f59ef19858cfc82
Author: Vivien Malerba <malerba gnome-db org>
Date:   Fri Jul 5 07:51:29 2013 +0200

    Handle time and timestamp types in gda_set_set_holder_value()

 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 950a197..4a8a47e 100644
--- a/libgda/gda-set.c
+++ b/libgda/gda-set.c
@@ -1265,6 +1265,10 @@ gda_set_set_holder_value (GdaSet *set, GError **error, const gchar *holder_id, .
                gda_value_set_numeric (value, va_arg (ap, GdaNumeric *));
        else if (type == G_TYPE_DATE)
                g_value_set_boxed (value, va_arg (ap, GDate *));
+       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 if (type == G_TYPE_LONG)
                g_value_set_long (value, va_arg (ap, glong));
        else if (type == G_TYPE_ULONG)


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