summaryrefslogtreecommitdiff
path: root/src/node_flat_sql.erl
diff options
context:
space:
mode:
authorAlexey Shchepin <alexey@process-one.net>2019-12-16 06:52:06 +0300
committerAlexey Shchepin <alexey@process-one.net>2019-12-16 06:52:06 +0300
commit24ac62eabdb3f884dcdeda0b7f79592aff342f5d (patch)
tree2c424f460d3e519779648fccfe43b01026a5257a /src/node_flat_sql.erl
parentImprove compatibility with CockroachDB (#3074) (diff)
Improve compatibility with CockroachDB (#3074)
Diffstat (limited to 'src/node_flat_sql.erl')
-rw-r--r--src/node_flat_sql.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_flat_sql.erl b/src/node_flat_sql.erl
index 15d9fd77..76b1c8cc 100644
--- a/src/node_flat_sql.erl
+++ b/src/node_flat_sql.erl
@@ -838,7 +838,7 @@ del_items(_, []) ->
del_items(Nidx, [ItemId]) ->
del_item(Nidx, ItemId);
del_items(Nidx, ItemIds) ->
- I = str:join([[<<"'">>, ejabberd_sql:escape(X), <<"'">>] || X <- ItemIds], <<",">>),
+ I = str:join([ejabberd_sql:to_string_literal_t(X) || X <- ItemIds], <<",">>),
SNidx = misc:i2l(Nidx),
catch
ejabberd_sql:sql_query_t([<<"delete from pubsub_item where itemid in (">>,