Use correct sqlite escapes of strings.
This commit is contained in:
parent
4bf882d385
commit
e03b4ff0c1
|
@ -82,8 +82,8 @@ static const char* sql_escape_string(const char* str)
|
|||
size_t n = 0;
|
||||
for (; n < strlen(str); n++)
|
||||
{
|
||||
if (str[n] == '\'' || str[n] == '\\')
|
||||
out[i++] = '\\';
|
||||
if (str[n] == '\'')
|
||||
out[i++] = '\'';
|
||||
out[i++] = str[n];
|
||||
}
|
||||
return out;
|
||||
|
|
Loading…
Reference in New Issue