Problem with GO
Dave Pendleton
Posts: 104 Bronze 3
What is the problem with "GO"?
Perhaps three times out of 100, I actually see "GO" as a listed candidate, the other 97 times, I get "GOTO".
I'm getting tired of having to ESCape or backspace over a GOTO.
Perhaps three times out of 100, I actually see "GO" as a listed candidate, the other 97 times, I get "GOTO".
I'm getting tired of having to ESCape or backspace over a GOTO.
Comments
I have to admit that I have encountered this issue myself on several occasions, but never reliably enough to log a bug report. I thought it was probably a mistake (bad syntax) on my part that caused the problem, as I have never been able to recreate the issue after.
Do you happen to have some example SQL that reliably recreates this issue?
PITA to deal with.
I can type GO in an empty Query Analyzer window and it will behave this way.
Thanks for your reply.
I have informed the development team about this issue. The problem is logged under the bug tracking code of SP-836.
I will update you once the report has been reviewed.
Andrew,
Sorry for the slow response.
Can you give me some example SQL that will reproduce this issue? As far as I can tell, IN will only be suggested as a candidate when it is valid in the query.
For example, if I type 'Select * from table WHERE column IN' then IN will be a valid suggestion and presented in the candidate list, but if I type IN somewhere that is not relevant then it wont be suggested in the candidate list. If you could give me an example where IN is not suggested when it should be, I can pass the issue on to the developers.
Thanks
where id in(formation_schema)
IN not an option at all in the dropdown list.
1st option is INFORMATION_SCHEMA, 2nd is INDEX_COL.
pain to have to go back and delete code and replace with desired result.
version 3.5.0.333
Could you try the code with the latest version (SQL Prompt 3.6). I can't reproduce the problem with 3.6. You can download it by selecting SQL Prompt > Check for Updates
I know this isn't proof, but this is what happens when I write a query aginst the Advetureworks database:
USE [AdventureWorks]
SELECT * FROM [Person].[Address] a
WHERE a.[AddressID] IN
SELECT * from table1
LEFT
When you type LEFT, do you only get the suggestion for the function left? When I try I also have the option to select the keyword LEFT. The function is listed first, but below that I can choose the keyword - and continue to type LEFT JOIN, or LEFT OUTER etc
The reason the function is listed is because functions are valid SQL in a FROM clause, so they will appear in the candidate list. In this situation I would agree that the use of the keyword would be more common than the function, but it is by design that functions are listed before 'other candidates' when creating the list.
I hope this helps clarify the issue a little.