Custom objects.

View: New views
2 Messages — Rating Filter:   Alert me  

Custom objects.

by Developer-23 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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

What could be my mistake ?

Thanks in advance...

_______________________________________________
gnome-db-list mailing list
gnome-db-list@...
http://mail.gnome.org/mailman/listinfo/gnome-db-list

Re: Custom objects.

by Vivien Malerba :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/9/18 Developer <csavoretti@...>:

>
> 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
_______________________________________________
gnome-db-list mailing list
gnome-db-list@...
http://mail.gnome.org/mailman/listinfo/gnome-db-list