Re: [gnome-db] Custom objects.

Vivien Malerba <[email protected]>
Newsgroups gmane.comp.gnome.db
Message-ID <[email protected]>
2009/9/18 Developer <[email protected]>:
>
> I'm having a problem populating a custom object.
>
> Given:
> ---
> const gchar *xml_description =
>    "<table name=\"" DOCUMENT_TABLE_NAME "\">"
>    "  <column name=\"id\" type=\"gint\" pkey=\"TRUE\" autoinc=\"TRUE
> \"/>"
>    "  <column name=\"element\"/>"
>    "  <column name=\"attributes\"/>"
>    "  <column name=\"prev\" type=\"gint\" nullok=\"FALSE\"/>"
>    "  <column name=\"next\" type=\"gint\" nullok=\"FALSE\"/>"
>    "  <unique/>"
>    "    <column name=\"attributes\"/>"
>    "  <unique/>"
>    "</table>";
> ---
> and after added correctly the table, the inserted rows having
> _equals_ elements columns are ignored, just like
> element would be a part of the key, but I am not
> set that in the description AFAIK

The description looks OK to me, do you have some code I can use to test?

Vivien
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.