SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
[SA 7.1.166 Pro] - SQLite One way relationships

 
Reply to topic    SoftTree Technologies Forum Index » SQL Assistant View previous topic
View next topic
[SA 7.1.166 Pro] - SQLite One way relationships
Author Message
gemisigo



Joined: 11 Mar 2010
Posts: 2165

Post [SA 7.1.166 Pro] - SQLite One way relationships Reply with quote
It seems that the relationships between tables are detected in one way only.
I've got the following relationships between tables activities, assignments and activity_status_types:




When I try building table joins between activities and assignments starting with activities table, the popup does not show the relationship:





Manually selecting the table for join indicates that the relationship recognized is based on name matching instead of the foreign key:





But when I try it starting with assignments table, it works:



Mon Sep 15, 2014 4:07 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Reply with quote
Thank you very much for reporting this issue. I will let the development team know and ask them to look into that.
Mon Sep 15, 2014 9:56 am View user's profile Send private message
gemisigo



Joined: 11 Mar 2010
Posts: 2165

Post Reply with quote
Any progress on this one?
Thu Oct 09, 2014 5:08 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Reply with quote
This is a limitation of SQLite, the PRAGMA foreign_key_list() statement returns referential integrity constraints for a table, but not constraints referencing that table, basically it works in one direction only. We have implemented a workaround, but it's not in a publicly available build yet.
Thu Oct 09, 2014 9:16 am View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » SQL Assistant All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.