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 750771 - Add test that uses 2 primary keys for one table
Add test that uses 2 primary keys for one table
Status: RESOLVED OBSOLETE
Product: gom
Classification: Other
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Gom Maintainers
Gom Maintainers
Depends on:
Blocks: 750772 753379
 
 
Reported: 2015-06-11 09:53 UTC by Bastien Nocera
Modified: 2019-03-20 10:39 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Bastien Nocera 2015-06-11 09:53:14 UTC
SQLite supports composite primary keys, so should we:
https://www.sqlite.org/lang_createtable.html
Comment 1 Bastien Nocera 2015-09-01 22:24:36 UTC
An example of using those composite keys:
http://stackoverflow.com/questions/734689/sqlite-primary-key-on-multiple-columns

We obviously can't support more than one primary key right now because of:
struct _GomResourceClass
{
   GObjectClass parent_class;

   gchar primary_key[64];
   gchar table[64];
};

Need to find a better way than this.
Comment 2 GNOME Infrastructure Team 2019-03-20 10:39:02 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gom/issues/10.