[gnome-db] manual's example: compilation broken



Hi,

The manual's example does not compile anymore, since gda_parameter_new()
seems to be replaced by gda_parameter_new_from_value().

Here is a patch to fix this problem, and an additional compilation
warning.

Cheers,

-- 
{ "Laurent" => "http://lrz.samika.net"; }
Index: full_example.c
===================================================================
RCS file: /cvs/gnome/libgda/doc/C/examples/full_example.c,v
retrieving revision 1.3
diff -u -r1.3 full_example.c
--- full_example.c	12 May 2003 22:58:04 -0000	1.3
+++ full_example.c	18 Oct 2003 15:31:57 -0000
@@ -60,7 +60,7 @@
 {
   gint row_id;
   gint column_id;
-  GdaValue *value;
+  const GdaValue *value;
   GdaRow *row;
   gchar *string;
 
@@ -301,12 +301,12 @@
   list = gda_parameter_list_new ();
 
   value = gda_value_new_integer (10);
-  parameter = gda_parameter_new ("p1", value);
+  parameter = gda_parameter_new_from_value ("p1", value);
   gda_parameter_list_add_parameter (list, parameter);
   gda_value_free (value);
 
   value = gda_value_new_integer (2);
-  parameter = gda_parameter_new ("p2", value);
+  parameter = gda_parameter_new_from_value ("p2", value);
   gda_parameter_list_add_parameter (list, parameter);
   gda_value_free (value);
 


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