Some databases such as Oracle permit double quoted column aliases that contain case-sensitive characters, single quotes, and other special characters; however, prior to this commit, SqlScripts interpreted a single quote nested within double quotes as the start of a string literal resulting in improper parsing. This commit addresses this issue by ensuring that double quoted strings such as column aliases are properly parsed even when containing single quotes. Issue: SPR-13218master
parent
de6bbe7797
commit
629bcb6599
4 changed files with 51 additions and 9 deletions
@ -0,0 +1,7 @@ |
|||||||
|
INSERT INTO users(first_name, last_name) VALUES('Juergen', 'Hoeller'); |
||||||
|
|
||||||
|
-- The following is not actually used; we just want to ensure that it does not |
||||||
|
-- result in a parsing exception due to the nested single quote. |
||||||
|
SELECT last_name AS "Juergen's Last Name" FROM users WHERE last_name='Hoeller'; |
||||||
|
|
||||||
|
INSERT INTO users(first_name, last_name) values('Sam', 'Brannen'); |
Loading…
Reference in new issue