Vladimir Ozerov created IGNITE-3738:
---------------------------------------

             Summary: ODBC: Escape functions: Ensure that escape sequence token 
is parsed correctly irrespective of whitespaces.
                 Key: IGNITE-3738
                 URL: https://issues.apache.org/jira/browse/IGNITE-3738
             Project: Ignite
          Issue Type: Task
          Components: odbc
    Affects Versions: 1.7
            Reporter: Vladimir Ozerov
            Assignee: Andrew Mashenkov
             Fix For: 1.8


The following escape sequences must be supported and parsed correctly:
1) {fn X}
2) { fn X}
3) {        fn  X}
4) { \n X}

Etc. That is, irrespective of whitespaces, everything must be parsed correctly. 
I propose to rely on {{Character.isWhitespace}}, not on regexp. That is, once { 
is found, we should simply skip all following whitespaces, then get the token, 
then possibly skip more whitespaces.





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to