Browse Source

prepared statement: fix single quotes

Christine Dodrill 2 years ago
parent
commit
720fa5f851
1 changed files with 1 additions and 2 deletions
  1. 1 2
      prepared_statement.go

+ 1 - 2
prepared_statement.go

@@ -12,8 +12,7 @@ func EscapeString(value string) string {
 		{`\0`, `\\0`},
 		{`\n`, `\\n`},
 		{`\r`, `\\r`},
-		{`"`, `\"`},
-		{`'`, `\'`},
+		{`'`, `''`},
 	}
 
 	for _, val := range replace {