BUG: ESQL: Insert w/ Single and Double Quotes May Cause ErrorLast reviewed: April 29, 1997Article ID: Q112987 |
The information in this article applies to:
- Microsoft Embedded SQL version 4.21 for COBOLBUG# 9763 (4.21)
SYMPTOMSIn an Embedded SQL for COBOL (ESQL/COBOL) application when a host variable is used to insert character values with embedded BOTH single AND double quotes, one of the following errors may occur, depending on whether the statement is dynamic or static:
Error 102: Syntax error near " "- or -
Error 105: Unenclosed quotes before character string " " CAUSESQL Server Embedded SQL for COBOL incorrectly handles the insertion of character strings that contain both single quotes and double quotes.
WORKAROUNDIn case of both single and double quotes, ESQL/COBOL uses single quotes as the delimiters and takes two single quotes as one. Thus, the workaround in this case is to modify the character strings so that all single quotes are doubled but leave the double quotes intact.
STATUSMicrosoft has confirmed this to be a problem in SQL Server Embedded SQL for COBOL version 4.21. We are currently researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
|
Additional query words: Tran
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |