Also add "escape '\'" to prepared statements in pgsqllike_escape
This commit is contained in:
parent
039d786e1f
commit
92a09fdb71
|
@ -779,7 +779,7 @@ pgsql_prepare(SQLQuery, State) ->
|
|||
fun(arg, {Acc, I}) ->
|
||||
{[<<$$, (integer_to_binary(I))/binary>> | Acc], I + 1};
|
||||
(escape, {Acc, I}) ->
|
||||
{[<<"">> | Acc], I};
|
||||
{[<<"ESCAPE E'\\\\'">> | Acc], I};
|
||||
(List, {Acc, I}) when is_list(List) ->
|
||||
{[<<$$, (integer_to_binary(I))/binary>> | Acc], I + 1}
|
||||
end, {[], 1}, (SQLQuery#sql_query.args)(Escape)),
|
||||
|
|
Loading…
Reference in New Issue