[gnome-db] gda_parameter_set_value



Hi,

The following patch provides implementation for
gda_parameter_set_value().

Cheers,

--
Laurent
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/libgda/ChangeLog,v
retrieving revision 1.588
diff -u -r1.588 ChangeLog
--- ChangeLog	16 Nov 2003 03:27:30 -0000	1.588
+++ ChangeLog	20 Nov 2003 19:53:35 -0000
@@ -1,3 +1,8 @@
+2003-11-20  Laurent Sansonetti <lrz gnome org>
+
+	* libgda/gda-parameter.c: 
+	Implements gda_parameter_set_value().
+
 2003-11-12  Paisa Seeluangsawat <paisa users sf net>
 	
 	* libgda/gda-blob.c:
Index: libgda/gda-parameter.c
===================================================================
RCS file: /cvs/gnome/libgda/libgda/gda-parameter.c,v
retrieving revision 1.25
diff -u -r1.25 gda-parameter.c
--- libgda/gda-parameter.c	11 Nov 2003 16:48:36 -0000	1.25
+++ libgda/gda-parameter.c	20 Nov 2003 19:53:36 -0000
@@ -270,7 +270,12 @@
 void
 gda_parameter_set_value (GdaParameter *param, GdaValue *value)
 {
-	/* FIXME */
+	g_return_if_fail (param != NULL);
+	g_return_if_fail (value != NULL);
+
+	if (param->value != NULL)
+		gda_value_free (param->value);
+	param->value = gda_value_copy (value);
 }
 
 /**


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