blackbeam/mysql_async

Batch delete by ids cannot be performed

qqliaoxin opened this issue · 2 comments

"DELETE FROM orders WHERE order_id IN (:order_ids)"
.with(params! { "order_ids" => ids, })
.ignore(&mut conn)
.await?;

There are problems:
If ids="1,2", the command cannot be executed

Hi. You are trying to give multiple values to a server where just a singe value expected.
Similar question answered in the following discussion: blackbeam/rust-mysql-simple#323

thank you