Problem Note 67148: The message "ERROR: CLI prepare error...ERROR: unterminated quoted string at or near "'\'" occurs when you use an escape character
When you use an escape character as part of an SQL procedure query, an error is received. For example, the following PROC SQL step triggers the below error:
proc sql;
select * from redshift-libref.test where col2 like 'test_%' escape '\';
quit;
ERROR: CLI prepare error: [SAS][ODBC Redshift Wire Protocol driver][Redshift]ERROR: unterminated quoted string at or near "'\'
Click the Hot Fix tab in this note to access the hot fix for this issue.
Operating System and Release Information
SAS System | SAS/ACCESS Interface to Amazon Redshift | Microsoft® Windows® for x64 | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 |
Microsoft Windows 8 Enterprise 32-bit | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 |
Microsoft Windows 8 Enterprise x64 | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 |
Microsoft Windows 8 Pro 32-bit | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 |
Microsoft Windows 8 Pro x64 | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 |
Microsoft Windows 8.1 Enterprise 32-bit | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 |
Microsoft Windows 8.1 Enterprise x64 | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 |
Microsoft Windows 8.1 Pro 32-bit | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 |
Microsoft Windows 8.1 Pro x64 | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 |
Microsoft Windows 10 | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 |
Microsoft Windows Server 2008 | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 |
Microsoft Windows Server 2008 R2 | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 |
Microsoft Windows Server 2008 for x64 | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 |
Microsoft Windows Server 2012 Datacenter | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 |
Microsoft Windows Server 2012 R2 Datacenter | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 |
Microsoft Windows Server 2012 R2 Std | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 |
Microsoft Windows Server 2012 Std | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 |
Microsoft Windows Server 2016 | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 |
Microsoft Windows Server 2019 | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 |
Windows 7 Enterprise 32 bit | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 |
Windows 7 Enterprise x64 | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 |
Windows 7 Home Premium 32 bit | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 |
Windows 7 Home Premium x64 | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 |
Windows 7 Professional 32 bit | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 |
Windows 7 Professional x64 | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 |
Windows 7 Ultimate 32 bit | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 |
Windows 7 Ultimate x64 | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 |
64-bit Enabled AIX | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 |
64-bit Enabled Solaris | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 |
HP-UX IPF | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 |
Linux for x64 | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 |
Solaris for x64 | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Type: | Problem Note |
Priority: | medium |
Date Modified: | 2020-12-23 10:34:47 |
Date Created: | 2020-12-21 14:13:37 |