2006/1/26, Bas Driessen <[EMAIL PROTECTED]>: [...] > > I agree with the concept to address this issue, but I don't believe this > code above will work OK. If I append a row with values to the datamodel, it > returns the line number of the new row and it exits. At that point I also > want to append it to the database. In the code above, you try to add the row > to the database if appending to the datamodel fails, but that is the other > way around if I read it correctly. I will do a some testing.
Calling the gda_data_model_row_append_values() will (because the GdaPostgresRecordset object does not implement the GdaDataModelRow's append_value() virtual function): * create a new GdaRow object initialized with the correct values * call the GdaDataModelRow's append_row() virtual function which is defined in gda-postgres-recordset.c:208, and will do the job. * return the row number of the new row. Tell me if it works, Vivien _______________________________________________ gnome-db-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gnome-db-list
