go-gorm / clickhouse

GORM clickhouse driver
MIT License
244 stars 72 forks source link

Update create.go #184

Open nelsontang opened 2 months ago

nelsontang commented 2 months ago

bugfix: When using the create or createInBatches methods with Byconity, RowsAffected is not set correctly

What did this pull request do?

When using the create or createInBatches methods with Byconity, RowsAffected is not set correctly

User Case Description

batch insert any record can find the bug

jinzhu commented 2 months ago

Hi @nelsontang

Can you add some tests to avoid it in the future?

Thank you.