[libgda/LIBGDA_4.0] Use accessor functions for GDate



commit eef5ae81a4a745375d153d911ad0cccc128b0432
Author: Vivien Malerba <malerba gnome-db org>
Date:   Thu Jan 21 20:51:36 2010 +0100

    Use accessor functions for GDate

 providers/mysql/gda-mysql-provider.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/providers/mysql/gda-mysql-provider.c b/providers/mysql/gda-mysql-provider.c
index c4f262e..854d281 100644
--- a/providers/mysql/gda-mysql-provider.c
+++ b/providers/mysql/gda-mysql-provider.c
@@ -1854,9 +1854,9 @@ gda_mysql_provider_statement_execute (GdaServerProvider               *provider,
 				MYSQL_TIME *mtime;
 				mtime = g_new0 (MYSQL_TIME, 1);
 				mem_to_free = g_slist_prepend (mem_to_free, mtime);
-				mtime->year = ts->year;
-				mtime->month = ts->month;
-				mtime->day = ts->day;
+				mtime->year = g_date_get_year (ts);
+				mtime->month = g_date_get_month (ts);
+				mtime->day = g_date_get_day (ts);
 
 				mysql_bind_param[i].buffer_type= MYSQL_TYPE_DATE;
 				mysql_bind_param[i].buffer= (char *)mtime;



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