Re: [gnome-db] gda_data_model_import_from_model ()

Vivien Malerba <[email protected]>
Newsgroups gmane.comp.gnome.db
Message-ID <[email protected]>
2009/7/16 Massimo Cora' <[email protected]>

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> I'm using the gda_data_model_import_from_model () function in this way:
> the *to and *from datamodels are select results.
> I just want to append the results from the latter to the former, but
> this error happens: "No INSERT statement provided".
>
> *to and *from have the same fields, and unfortunately I cannot compute a
> single query to retrieve both at the same time. (let's say that I cannot
> have the records ordered by desc/asc, but they must follow another logic).
> So my question is: how can I create a datamodel and append the records
> I'd like to?
>

The example in Libgda's sources: samples/TableCopy/table-copy.c, function
copy_products_2() does exactly what you are trying to do. Maybe you can find
where the problem is. Otherwise, I'd need a standalone example to work on.

Regards,
Vivien

_______________________________________________
gnome-db-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gnome-db-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.