After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 568484 - Create non-vararg versions of gda-easy methods
Create non-vararg versions of gda-easy methods
Status: RESOLVED FIXED
Product: libgda
Classification: Other
Component: c++ bindings
3.99.x
Other Linux
: Normal normal
: ---
Assigned To: malerba
gnome-db Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-01-20 21:06 UTC by Johannes Schmid
Modified: 2009-01-27 19:54 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Johannes Schmid 2009-01-20 21:06:16 UTC
/*
 * Data in tables manipulation
 */
gboolean            gda_insert_row_into_table        (GdaConnection *cnc, const gchar *table, GError **error, ...);
gboolean            gda_update_row_in_table          (GdaConnection *cnc, const gchar *table, 
						      const gchar *condition_column_name, 
						      GValue *condition_value, GError **error, ...);

These would need a non-vararg version for C++ wrapping as they seem to be useful in general
Comment 1 malerba 2009-01-26 14:55:57 UTC
Would it be ok with the following?

gboolean
gda_insert_row_into_table (GdaConnection *cnc, const gchar *table,
                           const gchar **col_names_array, GValue *values_array,
                           GError **error);

gboolean
gda_update_row_in_table (GdaConnection *cnc, const gchar *table, 
			 const gchar *condition_column_name, 
			 GValue *condition_value, 
                         const gchar **col_names_array, GValue *values_array,
                         GError **error);
Comment 2 Johannes Schmid 2009-01-26 15:26:39 UTC
Looks ok!
Comment 3 malerba 2009-01-27 19:54:05 UTC
Implemented in svn trunk rev #3302, with slightly different signatures.