From 720fa5f85149f9cb35ad1462931e94820dc34c9e Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Tue, 29 Aug 2017 21:49:34 +0000 Subject: [PATCH] prepared statement: fix single quotes --- prepared_statement.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/prepared_statement.go b/prepared_statement.go index 2ef43ca..cae8aaa 100644 --- a/prepared_statement.go +++ b/prepared_statement.go @@ -12,8 +12,7 @@ func EscapeString(value string) string { {`\0`, `\\0`}, {`\n`, `\\n`}, {`\r`, `\\r`}, - {`"`, `\"`}, - {`'`, `\'`}, + {`'`, `''`}, } for _, val := range replace {