From 89481baeddc510d341a0225b443f70bf75d560f1 Mon Sep 17 00:00:00 2001 From: Evgeniy Khramtsov Date: Tue, 31 Jan 2012 11:18:14 +1000 Subject: [PATCH] Replace a single quote with double quotes in an ODBC escape (thanks to Vladislav Chugunov) --- src/odbc/odbc_queries.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/odbc/odbc_queries.erl b/src/odbc/odbc_queries.erl index 11a2e3cab..37e757df6 100644 --- a/src/odbc/odbc_queries.erl +++ b/src/odbc/odbc_queries.erl @@ -585,7 +585,7 @@ escape($\n) -> "\\n"; escape($\t) -> "\\t"; escape($\b) -> "\\b"; escape($\r) -> "\\r"; -escape($') -> "\\'"; +escape($') -> "''"; escape($") -> "\\\""; escape($\\) -> "\\\\"; escape(C) -> C.