Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TEIIDDES-2548: Handling NUL character in SQL String
* The NUL character can added to an ESCAPE clause using its unicode counterpart \u0000 and this is converted by java into \0. This character is problematic for printing in any display since printing will terminate at the first occurence of NUL. * Using the SQL editor, users can enter the unicode string into the UI but on saving this is converted to \0. The DisplayNode tree still contains all nodes after the \0 but printing DisplayNode.toString() terminates too soon. * TextDisplayNode * Protect the UI in the text from the \0 by returning \\u0000 (escaped version). This will display \u0000 in the UI and save it to the XMI file ensuring it can be safely deployed to Teiid.
- Loading branch information