After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 558752 - ServerOperation CREATE TABLE doesn't work
ServerOperation CREATE TABLE doesn't work
Status: RESOLVED DUPLICATE of bug 529794
Product: libgda
Classification: Other
Component: PostgreSQL provider
3.99.x
Other All
: Normal normal
: ---
Assigned To: malerba
gnome-db Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-11-01 01:16 UTC by Daniel Espinosa
Modified: 2008-11-01 02:15 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Code to use for Reproduce Bug 558752 (332.33 KB, application/x-compressed-tar)
2008-11-01 01:21 UTC, Daniel Espinosa
Details

Description Daniel Espinosa 2008-11-01 01:16:22 UTC
Please describe the problem:
When creating a ServerOperation CREATE TABLE with references to other table, I found that setting the key /FKEY_S/FKEY_FIELDS_A/@FK_FIELD/%d fails with the following error:

** ERROR:(gda-server-operation.c:403):node_find_or_create: assertion failed: (node)

Using SVN revision 3248 and with the following command:

gda-list-server-op-4.0 -o CREATE_DB -p PostgreSQL

You Get:

Using XML descriptions in /usr/share/libgda-4.0
For provider PostgreSQL
I/O warning : failed to load external entity "/home/esodan/.libgda/config"
Description for type: CREATE_DB
Operation not supported


With this command:

gda-list-server-op-4.0 -l -p PostgreSQL

You Get:

Using XML descriptions in /usr/share/libgda-4.0
For provider PostgreSQL
I/O warning : failed to load external entity "/home/esodan/.libgda/config"
Existing operation types for provider 'PostgreSQL':
CREATE_DB
DROP_DB
CREATE_TABLE
DROP_TABLE
RENAME_TABLE
ADD_COLUMN
DROP_COLUMN
CREATE_INDEX
DROP_INDEX
CREATE_VIEW
DROP_VIEW

Steps to reproduce:
1. Use the attached code
2. Compiles and execute it.


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Daniel Espinosa 2008-11-01 01:21:57 UTC
Created attachment 121763 [details]
Code to use for Reproduce Bug 558752

This patch shows the code used to test the new features to implement in gda_prepare_crate_table to add Foreing References flag, but fails to use a PostgreSQL provider (in a SQLite provider this functionality is ignored).
Comment 2 Daniel Espinosa 2008-11-01 02:15:35 UTC
This bug will be resolved when applied the PATCH-GdaEasy-CreateTable-References.diff patch where implements and resolves the use of references in gda_prepare_create_table function.

*** This bug has been marked as a duplicate of 529794 ***