]> granicus.if.org Git - ejabberd/commitdiff
Replace a single quote with double quotes in
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>
Tue, 31 Jan 2012 01:18:14 +0000 (11:18 +1000)
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>
Tue, 31 Jan 2012 01:18:37 +0000 (11:18 +1000)
an ODBC escape (thanks to Vladislav Chugunov)

src/odbc/odbc_queries.erl

index ab842b66c708640fae940e3ddb156626a528053a..3039ff2ec79894c7ef3aa34d3142c471f3f7c147 100644 (file)
@@ -557,7 +557,7 @@ escape($\n) -> "\\n";
 escape($\t) -> "\\t";
 escape($\b) -> "\\b";
 escape($\r) -> "\\r";
-escape($')  -> "\\'";
+escape($')  -> "''";
 escape($")  -> "\\\"";
 escape($\\) -> "\\\\";
 escape(C)   -> C.