Comments
2 comments
-
Hi there,
Thanks for your enquiry. We don't yet have a timetable for the 3.1 release and haven't decided what might go in to it yet.
I'm not sure what the problem is with your join, we are unable to reproduce it here. Could you please verify that your version number is 3.0.0.868?
The multi-column foreign key support works as designed: we may add an option to exclude all conditions but the one on all columns in the key in a future release. The current behaviour mimics that of SQL Prompt 2 and earlier versions of PromptSQL where multi-column foreign keys were not fully supported. We *do* fully support them but we also provide the additional join conditions for consistency with previous product versions.
We'll look into the colour issue: generally we pick up colours from whatever colour schema you happen to be using, although high contrast does provide some particular challenges in this regard.
Kind regards,
Bart -
I am indeed using 3.0.0.868.
I can reliably reproduce the problem with the join, like so:create table A(a_id int not null primary key) create table B(b_id int not null primary key) create table C(c_id int not null primary key, a_id int not null foreign key references A(a_id), b_id int not null foreign key references B(b_id)) -- update the SQL Prompt cache select * from C c join A a on c.a_id = a.a_id join B b on [completion list does not include the join from C to B]
The behavior of SQL Prompt with regards to multi-column foreign keys strikes me as being an optimization for the uncommon case. Yes, on rare occasions I only want to join on some of the key columns, but I would by far prefer to have SQL Prompt spit out the full relationship and then delete the unwanted conditions myself to SQL Prompt making me cursor around the completion list every time I want to make the normal join.
Add comment
Please sign in to leave a comment.
And a non-bug, but still obnoxious:
It looks like I will go back to using SQL Prompt 2 until SQL Prompt at-least-3.1 comes out.