Incorrect expansion of table alias
moff
Posts: 34
version 3.5.0.333
If you alias a table as 'ctat', SQL Prompt always expands the snippet ct (create table) even if you scroll down the list to select ctat.
I've reproduced this using the following dummy tables:
I can screenshot this if it would help.
If you alias a table as 'ctat', SQL Prompt always expands the snippet ct (create table) even if you scroll down the list to select ctat.
I've reproduced this using the following dummy tables:
SELECT * FROM TableA AS ctat INNER JOIN TableB AS tb ON ctat this point the cursor is to the right of the 'ct'. The tooltip says "Press TAB to insert snippet". I press ctrl-space and get a list of options, with ct snippet at the top. Using the arrow keys I scroll the highlight bar down two options, to ctat, and press tab. This is what the SQL ends up as:
SELECT * FROM TableA AS ctat INNER JOIN TableB AS tb ON CREATE TABLE ( -- column_name data_type,... )
I can screenshot this if it would help.
Comments
In a future release, we will likely fix it so when the candidate list is being displayed, then the snippet insertion is disabled.
Red Gate Software