SeaQL / sea-orm

🐚 An async & dynamic ORM for Rust
https://www.sea-ql.org/SeaORM/
Apache License 2.0
7.03k stars 492 forks source link

Fix lib panic on insert_many #2344

Open j-mendez opened 1 month ago

j-mendez commented 1 month ago

This removes the panic that happens on insert many. We should not have panics in a library production code.

tyt2y3 commented 1 month ago

sorry, I don't think this is a proper fix, yes it removes the panic, but the resulting query will still be wrong. ideally, we'd have to loop over the models a second time with a complete list of all columns to constuct the insert statement