tarantool / crud

Easy assess to data stored in vshard cluster
BSD 2-Clause "Simplified" License
40 stars 15 forks source link

Empty error on zero rows input #377

Closed DifferentialOrange closed 11 months ago

DifferentialOrange commented 1 year ago
./doc/playground.lua
tarantool> crud.insert_object_many('customers', {})
---
- null
- []
...

If an empty array is passed as argument, result is nil, errs, yet errs is an empty array.

The case may seem synthetic at the first glance, but it is rather easy to get into such situation while calling CRUD from go-tarantool and spend a couple of hours trying to explore what went wrong when error is non-nil, yet empty.