Handling quotes in variables

In some cases, the values the client application sends to the RSP contain quotation mark characters, either single or double. Because these characters are frequently used as string delimiters, DirectConnect can misinterpret strings containing quotes. Therefore, it may transform the values in ways that the RSP does not expect, for example by replacing the carriage return-linefeed sequence (CR/LF) with spaces.

To provide maximum control over quote handling in USE statements, Sybase implemented the following rules:

NoteThese rules apply only if your setting is TSQL1 or PASSTHROUGH.

NoteThe same delimiter character must be used at both ends of the string: for example, (xxxxxxxx( or {xxxxxxxx{ (not (xxxxxxxx) ).

If the first non-white-space character is not a delimiter, then MainframeConnect handles quotes according to the following standard TSQL1 rules: