question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

All script text following an unclosed quotation mark should be highlighted as a string or object

See original GitHub issue

Is your feature request related to a problem? Please describe. In a SQL editor, if you type in an opening quotation mark, either for a string literal (single quote) or a SQL object (double quote or square bracket), everything following that quote is highlighted as if it were code rather than a string or object name until such time as the closing quote is entered.

Describe the solution you’d like When an opening quote is typed, everything between that and the next closing quote (or the end of the script, if none exists) should be highlighted appropriately as either a string or object name.

Describe alternatives you’ve considered This isn’t normally problematic because the closing quotes can be auto-generated at the time the opening quote is entered via preferences. image I also have a strict policy of not including carriage returns or linefeeds in my object names 😃

Additional context

String Literal Examples

See comment thread on #11364 for background information. This: image should look like this instead: image (achieved by adding a closing quote one line below the snipped screenshot)

Object Names

The current behavior is a bit more complicated for object names. Everything following an unclosed quote on a line will be highlighted as code. image But after hitting enter, the text following the quote is highlighted as if it were an object name, though nothing on the following line is: image Once the closing quote is entered, the entire string is highlighted appropriately: image

Same behavior with square brackets: image image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jetzerbcommented, Mar 23, 2021

Indeed, MSSQL allows this: image

0reactions
uslsscommented, Mar 31, 2021

verified

Read more comments on GitHub >

github_iconTop Results From Across the Web

c# - incorrect syntax near '' unclosed quotation mark after the ...
Found the issue, it seems to be related to having " wasn't " within my text box causing the SQL to terminate (SQL...
Read more >
Unclosed quotation mark after the character string - CodeProject
I am doing transaction management process. Will this formula work there for three or more transactions? Shibasankar 9-Oct-13 3 ...
Read more >
SQL SERVER - How to Escape Single Quotes - Fix: Error: 105 ...
Following T-SQL Script will give error. USE AdventureWorks ... Error: 105 Unclosed quotation mark after the character string '.
Read more >
Unclosed quotation mark after the character string (Msg 105)
In this case, SQL Server will send the following error message: Msg 105, Level 15, State 1, Line 1 Unclosed quotation mark after...
Read more >
syntax error Unclosed quotation mark after the character string
I work on sql server 2012 i face syntax error when run query below. SELECT PartID,Code,Co.CodeTypeID,Co.RevisionID,Co.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found