Re: [gnome-db] Re: gda-postgres: updatable data models



El sáb, 25-10-2003 a las 07:48, Laurent Sansonetti escribió:
> I just realized that the previous patch was not in unified format :)
+               const gchar *newval = gda_value_stringify (gda_row_get_value ((GdaRow *) row, colnum));

You have to g_free that one after using it.


+               /* build the update command */
+               query = g_strdup_printf ("UPDATE %s ", priv_data->table_name);

You will leak that one.

+            if (pg_upd_res != NULL) {
+                    /* update ok! */
+                     if (PQresultStatus (pg_upd_res) == PGRES_COMMAND_OK)
+                            status = TRUE;
+                    else
+                            gda_connection_add_error (priv_data->cnc,
+                                                      gda_postgres_make_error (pg_conn, pg_res));

That one should be pg_upd_res

-- 
Gonzalo Paniagua Javier <gonzalo gnome-db org>
http://www.gnome-db.org/~gonzalo/







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