Bug: Ctrl+Enter after sql keyword jumbles text

noodlenoodle Posts: 2
edited December 24, 2013 7:37AM in SQL Prompt
Howdy,

When I used Ctrl+Enter with my cursor against a sql keyword, the keyword gets jumbled. Depending on the keyword, there must be text above the cursor's line for this to happen.

Example:

SELECT
*
FROM
sys.objects AS o
WHERE name LIKE '%z%'
GROUP BY| -- cursor here

/* results in */

SELECT
*
FROM
sys.objects AS o
WHERE name LIKE '%z%'

GROUBYBY


Thanks!
-Noodle

Comments

  • Wow that’s pretty odd, thanks for pointing this out and providing the reproduction steps. I'll look into seeing if I can figure out why it's doing that.

    Thanks,
    Aaron.
  • I think I have a fix for you in this private build - We didn't take into account that you can insert a newline before the caret when changing the case of a keyword.

    Out of curiosity which build are you currently using? (I had to set my keywords to lowercase to reproduce it on 6.2 since prompt should have left "BY" alone as it's already in uppercase)
Sign In or Register to comment.